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

Re: RFC: bootloader/initramfs protocol v2



Hi Jörg

On Mon, Nov 07, 2022 at 11:40:46AM +0100, Jörg Behrmann wrote:
> On Tue, Nov 01, 2022 at 09:29:07PM +0100, Bastian Blank wrote:
> > ## Prior works
> > 
> > [..]
> > - systemd install-kernel: only BLS as target, which nothing used by
> >   default in Debian can read
> > [..]
> 
> To maybe clarify this a bit: While kernel-install does target BLS primarily, it
> has support for differing layouts via the KERNEL_INSTALL_LAYOUT environment
> variable (set via layout= in {/usr/lib,/etc}/kernel/install.conf).

Okay.  However no multi-selection.

> kernel-install scripts are also just that, executables with two CLI entry points
> (add and remove) and a set of fixed environment variables that they
> receive. Currently all of this is written in POSIX shell (compatible with
> dash) - they can be made to do everything.

Add and remove are not enough for what I would like to have.  And I'm
really not in the mood to try that in POSIX shell.  Is it even able to
make sure stuff is actually written on the disk?

> kernel-install and BLS support a bit more than the machine ID here, The relevant
> keyword to look for in the kernel-install manpage and BLS is "entry-token".
> This was added for golden master setups, because the machine ID will probably
> only generated on first boot, but the initrd would be generated beforehand.

And I assume it got no way to migrate from an pre-defined entry-token to
the machine ID later on, which would be kind of useful to convert a
golden image into a real system where you can add unrelated systems
later.

Bastian

-- 
Those who hate and fight must stop themselves -- otherwise it is not stopped.
		-- Spock, "Day of the Dove", stardate unknown


Reply to: