Commit 79d02088 authored by Michael Shigorin's avatar Michael Shigorin

syslinux: added RESCUE_BOOTARGS support

This one is just like STAGE2_BOOTARGS but for rescue images (which don't do that one for quite a few reasons).
parent ae088e3b
label rescue label rescue
menu label ^Rescue LiveCD menu label ^Rescue LiveCD
kernel alt0/vmlinuz kernel alt0/vmlinuz
append initrd=alt0/full.cz fastboot live showopts automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue append initrd=alt0/full.cz fastboot live showopts automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue @rescue_bootargs@
label rescue_session label rescue_session
menu label Rescue with sess^ions support menu label Rescue with sess^ions support
kernel alt0/vmlinuz kernel alt0/vmlinuz
append initrd=alt0/full.cz fastboot live showopts automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue live_rw append initrd=alt0/full.cz fastboot live showopts automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue live_rw @rescue_bootargs@
label rescue_forensic label rescue_forensic
menu label ^Forensic mode (leave disks alone) menu label ^Forensic mode (leave disks alone)
kernel alt0/vmlinuz kernel alt0/vmlinuz
append initrd=alt0/full.cz fastboot live showopts automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue max_loop=16 forensic hash=@rescue_hash@ append initrd=alt0/full.cz fastboot live showopts automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue max_loop=16 forensic hash=@rescue_hash@ @rescue_bootargs@
label rescue_remote label rescue_remote
menu label Rescue with remote SSH ^access (DHCP) menu label Rescue with remote SSH ^access (DHCP)
kernel alt0/vmlinuz kernel alt0/vmlinuz
append initrd=alt0/full.cz fastboot live showopts automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue quiet ip=dhcp port=22 rootpw=AUTO append initrd=alt0/full.cz fastboot live showopts automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue quiet ip=dhcp port=22 rootpw=AUTO @rescue_bootargs@
...@@ -81,6 +81,10 @@ bootargs: clean ...@@ -81,6 +81,10 @@ bootargs: clean
sed -i "s,@bootargs@,$(STAGE2_BOOTARGS)," $(DSTDIR)/*.cfg; \ sed -i "s,@bootargs@,$(STAGE2_BOOTARGS)," $(DSTDIR)/*.cfg; \
fi; \ fi; \
sed -i "s,@bootargs@,," $(DSTDIR)/*.cfg sed -i "s,@bootargs@,," $(DSTDIR)/*.cfg
@if [ -n "$(RESCUE_BOOTARGS)" ]; then \
sed -i "s,@rescue_bootargs@,$(RESCUE_BOOTARGS)," $(DSTDIR)/*.cfg; \
fi; \
sed -i "s,@rescue_bootargs@,," $(DSTDIR)/*.cfg
clean: copy clean: copy
@if [ "$(SYSLINUX_UI)" = gfxboot ]; then \ @if [ "$(SYSLINUX_UI)" = gfxboot ]; then \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment