[issue1213] Please make directory names consistent in terms of flavor

Sebastian Steinhuber bts at bts.grml.org
Thu Oct 4 05:21:14 CEST 2012


New submission from Sebastian Steinhuber <sebastian.steinhuber at googlemail.com>:

Dear grml folks,

it's just more a wish-list item than a bug.
I'd like to use a variable (called flavor) in my /etc/grub.d/40-custom
like that:

menuentry "Grml rescue system, ia32 (ISO = grml96-full_2012.05.iso,
hd0,2)" {
    set isodev="(hd0,2)"
    set isofile="/fromiso/grml96-full_2012.05.iso"
    set flavor="grml32full"
    loopback loop $isodev/$isofile
    linux (loop)/boot/$flavor/vmlinuz boot=live debnet
dns=192.168.0.4,192.168.0.5 findiso=$isofile
hostname=vnb4.achtbits.intern. ignore_bootid
ip=192.168.0.204:192.168.0.64:192.168.0.1:255.255.255.0:vnb4:eth0:on
keyboard=de lang=de live-media-path=/live/grml32-full log noautoconfig
nobeep noconsolefont nodhcp nodmraid noeject nolvm nomce nomodem
noprompt noraid quiet tz=Europe/Berlin vga=791
    initrd (loop)/boot/$flavor/initrd.img
}

It's working fine, but it would be even easier to maintain regarding
future updates if the option live-media-path= could be controlled by
$flavour, too, just like
 linux (loop)/boot/$flavor/vmlinuz … live-media-path=/live/$flavor
 initrd (loop)/boot/$flavor/initrd.img …
instead of
 linux (loop)/boot/$flavor/vmlinuz … live-media-path=/live/grml32-full
 initrd (loop)/boot/$flavor/initrd.img …

… assuming kernel and initrd names won't change ;-), I'd only have to
change the menuentry line and the image filename in case of supplying an
grml upgrade to my machines.
Thanks for your considerations,

Sebastian

----------
messages: 4467
nosy: sebastian.steinhuber
status: unread
title: Please make directory names consistent in terms of flavor

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1213>
_____________________________________


More information about the Bugs-changes mailing list