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

Re: Bug in bootloaders with @KERNEL_LIVE@



While im at it
config/bootloaders/syslinux_common/live.cfg
does not work, after reading through the code it has to be
config/bootloaders/syslinux_common/live.cfg.in
I also noted that the @<replace>@ is different than the ones used in the grub.cfg

For example
live.cfg.in == @INITRD@
grub.cfg    == @INITRD_LIVE@
live.cfg.in == @LINUX@
grub.cfg    == @KERNEL_LIVE@

trying to use the ones from live.cfg.in in the grub.cfg does not work.

On 2025-12-03 21:37, donotemailme@xganon.com wrote:
Ok, the following in the config/bootloaders/grub-pc/grub.cfg

linux @KERNEL_LIVE@ boot=live config nosgx quiet initrd2=@INITRD_LIVE@ kernel2=@KERNEL_LIVE@

produced the following

linux /live/vmlinuz-6.17.9+deb14-amd64 boot=live config nosgx quiet initrd2=/live/initrd.img-6.17.9+deb14-amd64 kernel2=@/live/vmlinuz-6.17.9+deb14-amd64@

kernel2= is wrong. I can filter out the @ at the start and finish in the init but figured someone may want to know.

Because someone may ask. Im building a chain of trust boot. The initial initrd is set to securerd.img. it checks sha512 hashes and validates the gpg signature of the kernel and initrd images using a JCOP4 smart card with SmartPgpApplet on it for key storage. Then does a kexec to switch to initrd2 and kernel2.

Attachment: 0xBE355809.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: