You are not logged in.

#1 Yesterday 19:22:53

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 330
Website

Switching from grub to systemd-boot

I am trying to switch from grub back to sysemd-boot following the instructions here. The message I am getting is that there is no UEFI system detected. I tried using the -S option to arch-chroot and that made no difference.
Currently I run a script in chroot to configure my new system before installing grub and then rebooting. This is how I know that UEFI is active.

This is what I have so far:

chroot_config.fish

bootctl install --path=/boot

# arch entry
set root_uuid (sudo blkid -s UUID -o value /dev/nvme0n1p2)
printf %s "\
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=$root rw
options fsck.mode=force
" >/boot/loader/entries/arch.conf

# loader
printf %s "\
default arch
timoute 0
" >/boot/loader/loader.conf

bootctl update --path=/boot

systemctl enable systemd-boot-update.service
bootctl update
bootctl list

The message I am getting is:

Not booted with EFI, or running in a container, skipping EFI variable modicifations.

Any ideas?

Last edited by lenhuppe (Yesterday 19:46:37)

Offline

#2 Yesterday 19:55:24

headkase
Member
Registered: 2011-12-06
Posts: 2,006

Re: Switching from grub to systemd-boot

If you originally installed your system with an Master Boot Record partition layout and are booting your system with the Compatibility Support Module enabled in your BIOS then that would cause the error because your system is in MBR mode and not UEFI mode.  And if your partitions are MBR then making your system UEFI to use systemd-boot will likely be complicated. Edit: (your partitions need to be GPT and not MBR to use systemd-boot I'm sure).

Last edited by headkase (Yesterday 19:56:39)

Offline

#3 Yesterday 20:10:22

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 330
Website

Re: Switching from grub to systemd-boot

headkase wrote:

If you originally installed your system with an Master Boot Record partition layout and are booting your system with the Compatibility Support Module enabled in your BIOS then that would cause the error because your system is in MBR mode and not UEFI mode.  And if your partitions are MBR then making your system UEFI to use systemd-boot will likely be complicated. Edit: (your partitions need to be GPT and not MBR to use systemd-boot I'm sure).

CSM is disabled in the firmware, and I am wiping my nvme drive with blkdiscard before each installation.

Offline

#4 Yesterday 21:54:47

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 330
Website

Re: Switching from grub to systemd-boot

Had to rewrite my chroot config in two parts. The first one runs in a 'chroot', and the second sets up sytemd-boot in a 'chroot -S'.

Offline

Board footer

Powered by FluxBB