MKOSI generates the image correctly. But when booting the image from USB I see the following error messages, before the login prompt shows up. The OS, however, works correctly.
The error messages are coming from /grub/grub.cfg, which I attached as 'MKOSI Output' below. It looks like the 'if statement' causing the issue. When I change the 'if statement' as below, it seems to work. No error messages.
if [ "${grub_platform}" == "efi" -o test "${grub_platform}" == "pc" ]; then
The generated /grub/grub.cfg file:
set timeout=0
if [ "${grub_platform}" = efi ] || [ "${grub_platform}" = pc ]; then
menuentry "ubuntuLive_DEV-6.8.0-41-generic" {
linux /ubuntuLive_DEV/6.8.0-41-generic/vmlinuz root=PARTUUID=7a4852bb-4f6f-47ac-8fd7-76d59569e9a4 "quiet"
initrd /ubuntuLive_DEV/initrd /ubuntuLive_DEV/6.8.0-41-generic/kernel-modules.initrd
}
fi
mkosi commit the issue has been seen with
24.3
Used host distribution
Ubuntu
Used target distribution
Ubuntu
Linux kernel version used
6.8.0-41-generic
CPU architectures issue was seen on
x86_64
Unexpected behaviour you saw
MKOSI generates the image correctly. But when booting the image from USB I see the following error messages, before the login prompt shows up. The OS, however, works correctly.
The error messages are coming from /grub/grub.cfg, which I attached as 'MKOSI Output' below. It looks like the 'if statement' causing the issue. When I change the 'if statement' as below, it seems to work. No error messages.
if [ "${grub_platform}" == "efi" -o test "${grub_platform}" == "pc" ]; then
Used mkosi config
mkosi output