On Wed, Oct 22, 2008 at 09:55:16AM +0200, Frédéric BOITEUX wrote: [...] > After reading this interesting e-mail, I revised the way I customize > my live systems : I was setting environment variables LH_* when calling > lh_config and lh_build, so I tried to specify my modifications in a > file I put in config/ directory, then I call : > lh_config --conffile <my-conf-file> > and > lh_build. > > I noticed that in that case, some parameters set in my conf-file > aren't used : for example LH_DEBUG, because the lh_config script writes > its config/common file with this variable *commented* : I am a live-helper newbie, but I do it like this: First put the options as parameters to lh_config in a bash script, which also issues lh_build ---------------------------- bash script to configure and build --------- mkdir -p debian-live cd debian-live sudo lh_clean lh_config -b usb-hdd \ --apt-recommends disabled --categories="main contrib non-free" \ --bootappend-live "locale=sv_SE.UTF-8 keyb=se-latin1" \ --linux-flavours "686" \ --mirror-bootstrap "http://localhost:3142/ftp.se.debian.org/debian/" \ --mirror-chroot "http://localhost:3142/ftp.se.debian.org/debian/" \ --mirror-binary "http://localhost:3142/ftp.se.debian.org/debian/" \ --mirror-binary-security "http://localhost:3142/security.debian.org" \ -p my-packages # Choose packages to install echo "#include <standard-x11>" > config/chroot_local-packageslists/my-packages echo "#include <kde>" >> config/chroot_local-packageslists/my-packages # more customization here, if needed sudo lh_build -------------- end of the configure and build script --------------- Then run this script like this rm -rf config/ && bash bin/aa1 2>&1 | tee build.log -- Note that I use Debian version lenny/sid Linux samir 2.6.26-1-686 #1 SMP Thu Aug 28 12:00:54 UTC 2008 i686 GNU/Linux Hans Ekbrand (http://sociologi.cjb.net) <hans@sociologi.cjb.net> Signature generated by Signify v1.14. For this and more, visit http://www.debian.org/
Attachment:
signature.asc
Description: Digital signature