summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0f45dd8)
With integration of recent live-boot versions we don't have DHCP
requests in grml-autoconfig anymore (which used to require the
nodhcp option to disable the request) but the initrd cares about
it. If we're using nodhcp for booting then the initrd won't
configure networking any longer at all, which means booting via
PXE doesn't work.
To make sure that the nodhcp bootoption isn't present in custom
live systems let's remove the option using grml2usb's
--remove-bootoption=nodhcp feature (grml2usb ftw!).
Acked by: Ulrich Dangel <mru@grml.org>
Acked by: Christian Hofstaedtler <ch@grml.org>
Acked by: Michael Gebetsroither <gebi@grml.org>
# default boot arguments used for both grub and pxelinux
if [ -e '/live/cow' ]; then
default_boot_args_="root=/dev/nfs rw nfsroot=$IP_:$MOUNT_POINT_ \
# default boot arguments used for both grub and pxelinux
if [ -e '/live/cow' ]; then
default_boot_args_="root=/dev/nfs rw nfsroot=$IP_:$MOUNT_POINT_ \
-nodhcp noprompt noeject"
else
default_boot_args_="ramdisk_size=24000 root=/dev/ram0 rw \
init=/etc/init nfsdir=$IP_:$MOUNT_POINT_ nodhcp noprompt noeject \
else
default_boot_args_="ramdisk_size=24000 root=/dev/ram0 rw \
init=/etc/init nfsdir=$IP_:$MOUNT_POINT_ nodhcp noprompt noeject \
DEST_DIR=$(mktemp -d)
if [ -d /live/image/boot ] ; then
grml2usb --bootloader-only \
DEST_DIR=$(mktemp -d)
if [ -d /live/image/boot ] ; then
grml2usb --bootloader-only \
- --bootoptions="$pxe_def_boot_args_ $BOOT_ARGS_" /live/image "$DEST_DIR"
+ --bootoptions="$pxe_def_boot_args_ $BOOT_ARGS_" \
+ --remove-bootoption=nodhcp \
+ /live/image "$DEST_DIR"
mv "$DEST_DIR"/boot/syslinux/* "$TFTPD_DATA_DIR_/"
rmdir "$DEST_DIR"/boot/syslinux
mv "$DEST_DIR"/boot/syslinux/* "$TFTPD_DATA_DIR_/"
rmdir "$DEST_DIR"/boot/syslinux