diff options
author | Martin Schwenke <martin@meltin.net> | 2014-06-16 15:57:44 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2014-06-25 20:46:15 +1000 |
commit | 66750ab53da7d9aa1a035eb6829fefff25fcb01c (patch) | |
tree | 2f8596426caf89bdb3477543921d248ffa25ca3c /autocluster | |
parent | d1e570f74343c4c3021f22133770f76c16884056 (diff) | |
download | autocluster-66750ab53da7d9aa1a035eb6829fefff25fcb01c.tar.gz autocluster-66750ab53da7d9aa1a035eb6829fefff25fcb01c.tar.xz autocluster-66750ab53da7d9aa1a035eb6829fefff25fcb01c.zip |
RHEL 7 needs different boot options to support kickstart
It no longer supports ks=floppy and needs inst.stage2 to point to the
DVD image.
Label the "floppy" as "KICKSTART" regardless of the version - this
does no harm.
If running RHEL >= 7 then set up the kickstart "floppy" as a hard disk
in libvirt and have the kernel command-line point to the label. Also
set inst.stage2 so it can find root device to install from.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'autocluster')
-rwxr-xr-x | autocluster | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autocluster b/autocluster index df4ed57..59678df 100755 --- a/autocluster +++ b/autocluster @@ -592,7 +592,7 @@ EOF echo "Creating kickstart floppy" dd if=/dev/zero of=tmp/floppy.img bs=1024 count=1440 - mkdosfs tmp/floppy.img + mkdosfs -n KICKSTART tmp/floppy.img mount -o loop -t msdos tmp/floppy.img mnt cp tmp/ks.cfg mnt mount -o loop,ro $ISO tmp/ISO |