[ale] [ALE] Any Kickstart Guru's In the House

Derek Carter (aka goozbach) goozbach at friocorte.com
Tue May 22 13:42:54 EDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

you may want to try something like this in you %pre

# copy the files to the system root so they are accessible in %post
while : ; do
    logger "sleeping for kickstartfiles mount to be available"
    sleep 10
    if [ -d /mnt/sysimage/root ]; then
        cp -a /tmp/foo /mnt/sysimage/tmp/foo
        # store the installer args
        cat /proc/cmdline > /mnt/sysimage/installed-version
        logger "Copied kickstartfiles to system"
        break
    fi
done &

(snippet lovingly stolen from Cobbler's stock templates).

PS are you me? I'm currently debugging a centos5 kickstart migration
to centos6? :)

PPS apparently 'seq' doesn't exist in the centos6 install image.

PPPS and the default env of %pre is /bin/sh instead of /bin/bash

PPPPS I hope this info helps.
- --
Derek

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPu9AeAAoJECcWlbcE84qzuJ4QAJ7uz2pItXXImKmfoYGdwWWF
9WOwTNEOA593L1BqaZDJ0FAZ7V5dpWNXkoCJ3pHRsOlgoVIdHe2ONRxJEQSHL1aB
ylrJ2hKUNGeMQcD6OBEaJvfELxWVqPVQv20k+Fiz0yOGf9HD9dkbXPmapgmHFp8m
5WAnGmHXQzUXMv505Gybp2U5uvFjuKWhF960b3LaWFwqT56alrW50XIh82igvSn9
ENT10UezQXQy0Kki4RQ41vBonC1hN+kTrgDxx3gEpIARfyXxfwHpzRJouQTPdJIk
OzOFfGBGk4UKiZnRadsUMz9Sh0ZPC9S8KAadCM7+iOBzI4SaWrdr/SjtE3Ieoi51
rItjs+SQ7u1TBUQNF8FnAlBg3+I5rG6KO+F5FvKHA2mDDy32AUbqHbgKLgIQB0pN
50hNnqQnGl6ikYg4nQAvPoAcfiSNUzC0YdElboWnipyJE4/fWIHkPJ53qKLZOVb7
TRo3/m3xJdNp7tLPMyHjK3Wa0fayEXAKlAsWXOiliL60txoMbQrW4bPoJHt006EA
iELC7J0FyfQ3LmafXHC4FsFRrSOZEhFJNTuDWbRdJ71MUAMTUxCAxBVobkTp5j2b
5+nNj+363ZoDDF25FsIy1GBWPE03+KrW0nz/7cW6uVdXpCndV3OYGyjMv4tSy2+3
xYo5uprj+MKpt0zcV+Tt
=TIfB
-----END PGP SIGNATURE-----


More information about the Ale mailing list