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).
This commit is contained in:
Michael Shigorin 2016-04-04 13:20:09 +03:00
parent ae088e3bb0
commit 79d0208841
5 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,5 @@
label rescue
menu label ^Rescue LiveCD
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@

View File

@ -1,5 +1,5 @@
label rescue_session
menu label Rescue with sess^ions support
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@

View File

@ -1,5 +1,5 @@
label rescue_forensic
menu label ^Forensic mode (leave disks alone)
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@

View File

@ -1,5 +1,5 @@
label rescue_remote
menu label Rescue with remote SSH ^access (DHCP)
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@

View File

@ -81,6 +81,10 @@ bootargs: clean
sed -i "s,@bootargs@,$(STAGE2_BOOTARGS)," $(DSTDIR)/*.cfg; \
fi; \
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
@if [ "$(SYSLINUX_UI)" = gfxboot ]; then \