From: Darshaka Pathirana Date: Wed, 3 Jun 2020 16:13:16 +0000 (+0200) Subject: Add boot option pnet (Predictable Network Interface Names) X-Git-Tag: v0.35.4~2^2 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=d56d6fa46055efde45399faa3a415a3b0a3bd9a8;ds=sidebyside Add boot option pnet (Predictable Network Interface Names) We plan to use Predictable Network Interface Names by default. To make that switch easier we added a new boot option "pnet". The kernel command line option "net.ifnames=0" is currently in every boot option (except "pnet") but should be removed when Predictable Network Interface Names works for us. See: grml/grml#127 --- diff --git a/templates/boot/grub/%SHORT_NAME%_options.cfg b/templates/boot/grub/%SHORT_NAME%_options.cfg index d3a2193..623c413 100644 --- a/templates/boot/grub/%SHORT_NAME%_options.cfg +++ b/templates/boot/grub/%SHORT_NAME%_options.cfg @@ -1,4 +1,12 @@ submenu "%GRML_NAME% - advanced options ->" --class=submenu { +menuentry "%GRML_NAME% - Enable Predictable Network Interface Names" { + set gfxpayload=keep + echo 'Loading kernel...' + linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" + echo 'Loading initrd...' + initrd /boot/%SHORT_NAME%/initrd.img +} + menuentry "%GRML_NAME% - enable persistency mode" { set gfxpayload=keep echo 'Loading kernel...' diff --git a/templates/boot/isolinux/grml.cfg b/templates/boot/isolinux/grml.cfg index dd19d4d..95dbc79 100644 --- a/templates/boot/isolinux/grml.cfg +++ b/templates/boot/isolinux/grml.cfg @@ -13,6 +13,15 @@ label debug bootup sequence. endtext +label pnet + menu label %GRML_NAME% - Enable Predictable ^Network Interface Names + kernel /boot/%SHORT_NAME%/vmlinuz + append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=791 nomce + + text help + Boot Grml with Predictable Network Interface Names. + endtext + label nofb menu label %GRML_NAME% - Dis^able Framebuffer kernel /boot/%SHORT_NAME%/vmlinuz