[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to include a preseed.cfg file to d-i live



On 03/06/12 09:44 AM, Éclipse M wrote:
> Modify the file "config/binary" :
> 
> LB_BOOTAPPEND_INSTALL="file=/cdrom/install/preseed.cfg"
> 
> LB_DEBIAN_INSTALLER_PRESEEDFILE="preseed.cfg"

Please don't do that nor advise people to do that. Use 'lb config' to
set variables in config/* files instead of editing variables directly.
Please read chapter 6 of live-manual about properly maintaining a Debian
Live config using auto scripts, as that is the best practice.

Also, there is no need to specify either lb config option. Mere
existence of the file (preseed.cfg is the default filename -- the
lb_config man page needs to be updated to say this) will cause it to be
added to LB_BOOTAPPEND_INSTALL (see functions/defaults.sh) which is yet
another reason you don't want to hand-edit any of these variables. If
you do that, you'll likely screw things up for yourself if you change
any options. The path you gave for the preseed file, for instance, would
change if you specified different lb config options than the defaults
(e.g. 'lb config -b hdd' for anything but k/ubuntu)

Ben


Reply to: