The way to go is to override the "bootloaders" directory
Assuming your configuration tree lies in ~/live, create a
~/live/config/bootloaders/ directory. Then copy (cp -L to dereferences symbolic
links) the /usr/share/live/build/bootloaders/isolinux/ directory in the newly
created "bootloaders" directory. Update the live.cfg.in file to your needs and
rebuild your live system. Check in binary/isolinux/ that the live.cfg has been
created as expected.
Here is my live example :
axel@cortex:~/live$ cat config/bootloaders/isolinux/live.cfg.in
# This is a custom boot menu !
label live-@FLAVOUR@
menu label ^Live (@FLAVOUR@)
menu default
linux @LINUX@
initrd @INITRD@
append @APPEND_LIVE@
label live-@FLAVOUR@-failsafe
menu label ^Live (@FLAVOUR@ failsafe)
linux @LINUX@
initrd @INITRD@
append @APPEND_LIVE_FAILSAFE@
After the build :
axel@cortex:~/live$ cat binary/isolinux/live.cfg
# This is a custom boot menu !
label live-amd64
menu label ^Live (amd64)
menu default
linux /live/vmlinuz
initrd /live/initrd.img
append boot=live config quiet splash
label live-amd64-failsafe
menu label ^Live (amd64 failsafe)
linux /live/vmlinuz
initrd /live/initrd.img
append boot=live config memtest noapic noapm nodma nomce nolapic
nomodeset nosmp nosplash vga=normal
Le 11 juil. 2013 à 22:06, Michal Suchanek <[email protected]> a écrit :
> Hello,
>
> this is not quite what the scripts are designed to do.
>
> There are multiple cfg snippets and they are supposed to be fit
> together so that live and installer are configured independently.
>
> If you just wanted to wipe out the whole thing and write your you
> could do that in binary hooks but in those you don't have the config
> variables available. Actually the variables you are trying to have
> substituted are only local to the script that writes the live snippet.
>
> Maybe v4 will be more flexible since it will be in a programming language.
>
> Thanks
>
> Michal
>
>
> --
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact [email protected]
> Archive:
> http://lists.debian.org/caomqcttgc-j3kugl1ycjubabmpgf6wo+nkdalceoaenoq5k...@mail.gmail.com
>
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive:
http://lists.debian.org/[email protected]