Re: kickstart %pre help on C5.4

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



From: Alan McKay <alan.mckay@xxxxxxxxx>
> 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.

For my usb key, I use by example:

%pre --interpreter /usr/bin/bash
mkdir /usbkey
mount /dev/sda2 /usbkey
cp -a /usbkey/misc /tmp/
umount /usbkey
chvt 3
/tmp/misc/ks_pre.sh | tee /tmp/ks_pre.log 2>&1
chvt 1


      
_______________________________________________
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