kickstart %pre help on C5.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hey folks!

I'm doing some %pre work for the first time in a very long time, and
have been at this all day so far and still don't have anything sorted
out properly.

First I tried just doing some simple bash stuff like this

%pre
#!/bin/bash
# stuff

I reduced "stuff" down to basically a simple "select" statement to
echo and read input, just for the sake of debugging.

My first problem is that when running the kickstart, the little box
would come up saying it is running the pre scripts, but my scripts
would never actually run.   No output, no prompts, nothing.

So after some muddling I tried this :

%pre
#!/bin/bash
exec 1>&3
exec > /dev/tty
chvt 3
exec < /dev/tty3 > /dev/tty3
clear
# stuff

I cannot say I really understand this - it is just something I came
across.   in any case, now my script seems to run fine, but after it
finishes it does not appear to go back to my install.  I get messages
like :

date INFO all kickstart %%pre script(s) have been run
date WARNING resolution and depth not specified, try to be sane

and that is it - it stops there.

I've also tried just :

%pre
#!/bin/bash
chvt 3
clear
# stuff

With the same results as above.

This is all running within VMWare ESXi 4.0 if that matters.

What am I missing here?

thanks,
-Alan

-- 
“Don't eat anything you've ever seen advertised on TV”
         - Michael Pollan, author of "In Defense of Food"
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux