hello world,
I have difficulities installing siduction with a specific partition layout.
After "successful" installation, the boot screen tells me to load a kernel first.
I tried this with my desktop system which was running Linux Mint. I formatted /, /boot, but not /boot/efi as there is also a Windows on another disk.
At first I thought I was crazy, but after multiple tries and messing around with chroot, I just tried Sparky Linux (based on testing, also with calamares installer) and everything worked as expected. I'm writing from that installaltion right now. I didn't have issues with Mint, either.
To make sure I'm not crazy, I tried it in a VM and it shows the same behavior. Now I'm here and need help to get it working as I'd like to use siduction.
my partition layout:
/dev/vda1 300M vfat /boot/efi
/dev/vda2 1.2G ext4 /boot
/dev/vda3 40G btrfs /
/dev/vda4 20G ext4 /home
the error:
Loading Linux 6.5.2-1-siduction-amd ...
Error: file `/@/boot/vmlinuz-6.5.2-1-siduction-amd64' not found.
Loading initial ramdisk ...
error: you need to load a kernel first.
Press any key to continue... [i](to grub menu)[/i]
If I run the live cd and check with chroot helper if the files are where they should be, everything seems ok. but /boot/efi couldn't be mounted at chroot start cause the boot partition is mounted after the efi partition. If I change the order in fstab, the error is gone in chroot, but the system still does not boot.
mount: /boot/efi: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
root@chroot-helper:/#
root@chroot-helper:/# ls -l /boot/
total 47576
-rw-r--r-- 1 root root 289985 Sep 6 22:43 config-6.5.2-1-siduction-amd64
drwxr-xr-x 2 root root 4096 Dec 2 17:22 efi
drwxr-xr-x 5 root root 4096 Dec 2 17:25 grub
-rw-r--r-- 1 root root 36710163 Dec 2 17:25 initrd.img-6.5.2-1-siduction-amd64
drwx------ 2 root root 16384 Dec 2 17:22 lost+found
-rw-r--r-- 1 root root 138712 Aug 19 12:40 memtest86+ia32.bin
-rw-r--r-- 1 root root 139776 Aug 19 12:40 memtest86+ia32.efi
-rw-r--r-- 1 root root 144344 Aug 19 12:40 memtest86+x64.bin
-rw-r--r-- 1 root root 145408 Aug 19 12:40 memtest86+x64.efi
-rw-r--r-- 1 root root 3396215 Sep 6 22:43 System.map-6.5.2-1-siduction-amd64
-rw-r--r-- 1 root root 7712736 Sep 6 22:43 vmlinuz-6.5.2-1-siduction-amd64
root@chroot-helper:/# ls -l /boot/efi/
total 0
here I mounted /boot/efi from outside the chroot.
root@chroot-helper:/# ls -l /boot/efi/
total 4
drwxr-xr-x 4 root root 4096 Dec 2 2023 EFI
root@chroot-helper:/# ls -l /boot/efi/EFI/
boot/ siduction/
root@chroot-helper:/# ls -l /boot/efi/EFI/siduction/
total 136
-rwxr-xr-x 1 root root 139264 Dec 2 2023 grubx64.efi
/etc/fstab
root@chroot-helper:/# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=94dfceaa-e5b3-42ac-8832-91d71f87094b /boot ext4 defaults,noatime 0 2
UUID=9D34-76E9 /boot/efi vfat umask=0077 0 2
UUID=ea26634c-dd97-4633-a98b-1b53d507e87a / btrfs subvol=/@,defaults,noatime,space_cache=v2,autodefrag,compress=zstd 0 0
UUID=ea26634c-dd97-4633-a98b-1b53d507e87a /.snapshots btrfs subvol=/@snapshots,defaults,noatime,space_cache=v2,autodefrag,compress=zstd 0 0
UUID=ea26634c-dd97-4633-a98b-1b53d507e87a /root btrfs subvol=/@root,defaults,noatime,space_cache=v2,autodefrag,compress=zstd 0 0
UUID=ea26634c-dd97-4633-a98b-1b53d507e87a /var/log btrfs subvol=/@var@log,defaults,noatime,space_cache=v2,autodefrag,compress=zstd 0 0
UUID=c61ad6d0-2d22-4cf4-ba10-31f8affdfdd4 /home ext4 defaults,noatime 0 2
root@chroot-helper:/#
After changing the order of /boot and /boot/efi in fstab, I just tried another grub-install and update-grub
root@chroot-helper:/# grub-install
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@chroot-helper:/# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/giants/theme.txt
Found linux image: /boot/vmlinuz-6.5.2-1-siduction-amd64
Found initrd image: /boot/initrd.img-6.5.2-1-siduction-amd64
Found memtest86+ 64bit EFI image: /memtest86+x64.efi
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
No snapshots found.
If you think an error has occurred , please file a bug report at " https://github.com/Antynea/grub-btrfs "
Unmount /tmp/grub-btrfs.1zS5arZJdq .. Success
done
root@chroot-helper:/#
btw Memtest is loading.
The reason for the partition layout is that I want to use GRUB_DEFAULT=saved to remember the last choice in grub.
That wasn't possible with btrfs when I made the descision for the partition layout some years ago.
Maybe someone has an idea.
Cheers!