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

Re: Support for both 'normal' and 'live' installer



I have not played with the "live" type installer before, I've only ever
used "cdrom".

>From what I can understand from the code and manual, if you choose
"live" mode, a udeb (debian-installer package) 'live-installer' is
bundled with the other d-i udeb packages in your image.

With the live-installer udeb present, what then happens is that this
automatically gets run as one of the install steps when running the
installer.

However, you can setup a "preseed" file to disable it automatically
running, with it therefore becoming an optional install step which you
can choose whether or not to run during installation (expert mode if
not also others gives you a list of stages you can manually trigger).
If you choose to execute the live-installer stage then you get a "live"
installation, if you choose to skip it then you get a normal
installation.

So no, live-build does not create two sets of alternate install menu
entries.

Look into this I can see that the man page is out of date and needs
fixing. The path it specifies will not be used. I got the below correct
paths from looking at the actual code.

To use this feature, you should:
1) write "live-installer/enable=false" (without quotes) into either
config/preseed/FILE.cfg or config/preseed/FILE.cfg.installer,
(replacing FILE with whatever filename you want to use).
2) for iso|iso-hybrid|hdd images, you must use --debian-installer-
preseedfile "preseed.cfg".

wrt. that fixed filename for step #2, it must be exactly "preseed.cfg"
trust me, I've determined that from reading the code, it refers to the
filename of the file that actually ends up in your image, which d-i
needs pointing to, and this file is created by live-build with the
contents of all of your config preseed files copied into it. There are
some bits of code as well as the manual that need updating to clear
this up and make it more simple (which I'm adding to my todo list). For
now you must specify exactly that as the filename for that option for
those image types for it to work.


On Mon, 2020-04-20 at 20:43 +0000, dbgr wrote:
> Hello
> 
> I am using the live-build version 20191221 (the one in testing) on a 
> debian stable/buster system to build an live image with and
> integrated 
> debian installer (with the '--debian-installer live' flag/option).
> 
> According to a note on the '12.1 Types of Debian Installer' section
> of 
> the live manual 
> (
> https://live-team.pages.debian.net/live-manual/html/live-manual/customizing-installer.en.html#627
> ): 
> "to support both normal and live installer entries in the bootloader
> of 
> the same live medium, you must disable live-installer by preseeding 
> live-installer/enable=false".
> 
> Could someone clarify this note? I should preseed 
> 'live-installer/enable=false' to the installer using a file pointed
> with 
> --debian-installer-preseedfile flag (or the default 
> config/binary_debian-installe/preseed.cfg - according to the man
> page)? 
> If that is the case should I preseed it as 'd-i 
> live-installer/enable=false'? When doing so live-build will somehow 
> configure two different entries in the bootloader automatically (one
> for 
> the 'live installer' and one for the 'normal' one)?
> 
> 
> Thank you
> 


Reply to: