Well, in hope it will be of any help for others, here I am recording exactly what I am doing to convert to sytemd-boot according to [Tutorial] Convert to systemd-boot and my post there (the steps I did then).
1- updating and rebooting! (Done)
2- sudo pacman -Rc grub
3- sudo mkdir /efi
4- efidevice=$(findmnt /boot/efi -no SOURCE) # save the efi partition location
5- sudo umount /boot/efi
6- sudo mount ${efidevice} /efi
7- To make the mount change permanent, edit /etc/fstab
and change where it reads /boot/efi
to /efi
8- sudo bootctl install
[limo@asus ~]$ sudo bootctl install
Created "/efi/EFI/systemd".
Created "/efi/loader".
Created "/efi/loader/entries".
Created "/efi/EFI/Linux".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/BOOT/BOOTX64.EFI".
Random seed file /efi/loader/random-seed successfully written (32 bytes).
Successfully initialized system token in EFI variable with 32 bytes.
Created EFI boot entry "Linux Boot Manager".
[limo@asus ~]$
9- sudo pacman -S kernel-install-for-dracut
and typed “y” to uninstall kernel-install-for-dracut and eos-dracut are in conflict. Remove eos-dracut? [y/N] y
10- Created the scrypt I called dalto.sh
#!/usr/bin/env bash
# Find the configured esp
esp=$(bootctl -p)
# Prepare the efi partition for kernel-install
machineid=$(cat /etc/machine-id)
if [[ ${machineid} ]]; then
mkdir ${esp}/${machineid}
else
echo "Failed to get the machine ID"
fi
# Run kernel install for all the installed kernels
while read -r kernel; do
kernelversion=$(basename "${kernel%/vmlinuz}")
echo "Installing kernel ${kernelversion}"
kernel-install add ${kernelversion} ${kernel}
done < <(find /usr/lib/modules -maxdepth 2 -type f -name vmlinuz)
11- sudo bash dalto.sh
12- sudo rm -r /boot/efi /boot/grub /boot/initramfs* /boot/vmlinuz*
Rebooting… hopefully I will be back soon… alive!
Rebooted in 9.061s VS.
Please note the following posts.
You should uncomment time out in
sudo nano /efi/loader/loader.conf
Thanks to feedback from @anthony93 and @pebcak
UPDATE:
Rebooted to
[limo@asus ~]$ inxi -Fxxx
System:
Host: asus Kernel: 5.15.85-1-lts arch: x86_64