Can't boot after update because kernel is in the wrong path?

Hello,

I am new to EndeavorOS. I recently installed it and I have a problem when I update the distribution.

When I firstly installed EndeavourOS, I had PopOS with Grub already installed. I used grub for PopOS and EndeavourOS (dual boot). I then decided to delete PopOS and install Windows. Now, I have a boot partition for each of my OS and that suits me like that, but I have this problem :

My boot partition is mounted in /boot and I have also an /efi directory.
When I update EndeavourOS, it build a new kernel in /boot but the system wait for these files in /efi, why it does that ? On next PC boot, the OS can’t boot and i’m on a black screen

I have found a temporary solution to fix it : boot in live cd, chroot, mount /boot, copy the 4 files from /boot to /efi, reboot and all works. But I have to do it every update :pensive: .

What’s the problem ?
I found online it can be dracut / mkinitcpio that have a bad configuration. After checking I have both of them (Is this normal ?) and I don’t know how to fix that.

pacman -Q | grep -E "(dracut|mkinitcpio)"  give me that :

dracut 059-4
eos-dracut 1.3-1
mkinitcpio 37.1-2
mkinitcpio-busybox 1.36.1-1
mkinitcpio-numlock 1.0.3-1

No, you are probably generating multiple sets of initrams. You should remove mkinitcpio.

Also, can we see some things to understand what you are seeing exactly?

The full output of findmnt --real and sudo dracut-rebuild

Thank you for the answer.

I will remove mkinitcpio when we found why I have this problem.

findmnt --real :

TARGET   SOURCE          FSTYPE OPTIONS
/        /dev/sdb4       ext4   rw,noatime
├─/run/user/1000/doc
│        portal          fuse.p rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
├─/tmp/.mount_joplin3DG9u3
│        Joplin.AppImage fuse.J ro,nosuid,nodev,relatime,user_id=1000,group_id=1000
├─/mnt/disque2
│        /dev/sda1       ext4   rw,nosuid,nodev,relatime
├─/efi   /dev/sdb1       vfat   rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro
└─/mnt/nas
         //192.168.1.12/home
                         cifs   rw,relatime,vers=3.1.1,cache=strict,username=vickes,uid=1000,noforceuid,gid=1000,noforcegid,addr=192

sudo dracut-rebuild :

:: Building initramfs for linux (6.6.10-arch1-1)
dracut: Executing: /usr/bin/dracut --force --hostonly --no-hostonly-cmdline /boot/initramfs-linux.img 6.6.10-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: i18n ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: Skipping udev rule: 70-persistent-net.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    809
dracut: Linked:                   3 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 42 files
dracut: Saved:                    356.78 KiB
dracut: Duration:                 0.016475 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initramfs-linux.img' ***
dracut: *** Creating initramfs image file '/boot/initramfs-linux.img' done ***
:: Building fallback initramfs for linux (6.6.10-arch1-1)
dracut: Executing: /usr/bin/dracut --force --no-hostonly /boot/initramfs-linux-fallback.img 6.6.10-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'cifs' depends on 'network', which can't be installed
dracut: dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found!
dracut: dracut module 'nfs' depends on 'network', which can't be installed
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: modsign ***
dracut: *** Including module: i18n ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: nvdimm ***
dracut: *** Including module: qemu ***
dracut: *** Including module: qemu-net ***
dracut: *** Including module: btrfs-snapshot-overlay ***
dracut: *** Including module: lunmask ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: virtiofs ***
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    2048
dracut: Linked:                   9 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 453 files
dracut: Saved:                    1.42 MiB
dracut: Duration:                 0.016778 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initramfs-linux-fallback.img' ***
dracut: *** Creating initramfs image file '/boot/initramfs-linux-fallback.img' done ***

Having both mkinitcpio and dracut installed can cause this problem. You have two different things generating the same files.

Everything looks fine to me in that output. They are being written to /boot as is expected.

Can you remove the mkinitcpio packages and then run sudo pacman -S linux linux-headers and share the full output from that?

Oh ok !

I’ve uninstalled mkinitcpio.
After that I executed the " sudo pacman -S linux linux-headers` command.

The logs :

:: Procéder à l’installation ? [O/n] 
(2/2) vérification des clés dans le trousseau                                     [----------------------------------------------] 100%
(2/2) vérification de l’intégrité des paquets                                     [----------------------------------------------] 100%
(2/2) chargement des fichiers des paquets                                         [----------------------------------------------] 100%
(2/2) analyse des conflits entre fichiers                                         [----------------------------------------------] 100%
:: Exécution des crochets (« hooks ») de pré-transaction…
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod nvidia/545.29.06 -k 6.6.10-arch1-1
:: Traitement des changements du paquet…
(1/2) réinstallation linux                                                        [----------------------------------------------] 100%
(2/2) réinstallation linux-headers                                                [----------------------------------------------] 100%
:: Exécution des crochets (« hooks ») de post-transaction…
(1/6) Arming ConditionNeedsUpdate...
(2/6) Updating module dependencies...
(3/6) Install DKMS modules
==> dkms install --no-depmod nvidia/545.29.06 -k 6.6.10-arch1-1
==> depmod 6.6.10-arch1-1
(4/6) Updating initramfs...
:: Building initramfs for linux (6.6.10-arch1-1)
dracut: Executing: /usr/bin/dracut --force --hostonly --no-hostonly-cmdline /boot/initramfs-linux.img 6.6.10-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: i18n ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: Skipping udev rule: 70-persistent-net.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    809
dracut: Linked:                   3 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 42 files
dracut: Saved:                    356.78 KiB
dracut: Duration:                 0.007485 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initramfs-linux.img' ***
dracut: *** Creating initramfs image file '/boot/initramfs-linux.img' done ***
:: Building fallback initramfs for linux (6.6.10-arch1-1)
dracut: Executing: /usr/bin/dracut --force --no-hostonly /boot/initramfs-linux-fallback.img 6.6.10-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'cifs' depends on 'network', which can't be installed
dracut: dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found!
dracut: dracut module 'nfs' depends on 'network', which can't be installed
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: modsign ***
dracut: *** Including module: i18n ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: nvdimm ***
dracut: *** Including module: qemu ***
dracut: *** Including module: qemu-net ***
dracut: *** Including module: btrfs-snapshot-overlay ***
dracut: *** Including module: lunmask ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: virtiofs ***
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    2048
dracut: Linked:                   9 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 453 files
dracut: Saved:                    1.42 MiB
dracut: Duration:                 0.017196 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initramfs-linux-fallback.img' ***
dracut: *** Creating initramfs image file '/boot/initramfs-linux-fallback.img' done ***
(5/6) Check if user should be informed about rebooting after certain system package upgrades.
(6/6) Checking which packages need to be rebuilt

Everything looks fine there. Nothing is being written to /efi.

Now can we see what you have in /efi?

sudo find /efi

Here it is
initframfs-linux files are the old one that i’ve moved myself on the previous update (not the one you told me to do)

sudo find /efi :

/efi
/efi/loader
/efi/loader/entries
/efi/loader/entries/endeavour.conf
/efi/loader/entries.srel
/efi/loader/loader.conf
/efi/loader/random-seed
/efi/EFI
/efi/EFI/systemd
/efi/EFI/systemd/systemd-bootx64.efi
/efi/EFI/BOOT
/efi/EFI/BOOT/BOOTIA32.EFI
/efi/EFI/BOOT/BOOTX64.EFI.gz
/efi/EFI/BOOT/bootx64.efi
/efi/EFI/BOOT/fbia32.efi
/efi/EFI/BOOT/fbx64.efi
/efi/EFI/Microsoft
/efi/EFI/Microsoft/Boot
/efi/EFI/Microsoft/Boot/BCD
/efi/EFI/Microsoft/Boot/BCD.LOG
/efi/EFI/Microsoft/Boot/BCD.LOG1
/efi/EFI/Microsoft/Boot/BCD.LOG2
/efi/EFI/Microsoft/Boot/bg-BG
/efi/EFI/Microsoft/Boot/bg-BG/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/bg-BG/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/boot.stl
/efi/EFI/Microsoft/Boot/bootmgfw.efi
/efi/EFI/Microsoft/Boot/bootmgr.efi
/efi/EFI/Microsoft/Boot/CIPolicies
/efi/EFI/Microsoft/Boot/CIPolicies/Active
/efi/EFI/Microsoft/Boot/CIPolicies/Active/{5DAC656C-21AD-4A02-AB49-649917162E70}.cip
/efi/EFI/Microsoft/Boot/CIPolicies/Active/{82443e1e-8a39-4b4a-96a8-f40ddc00b9f3}.cip
/efi/EFI/Microsoft/Boot/CIPolicies/Active/{CDD5CB55-DB68-4D71-AA38-3DF2B6473A52}.cip
/efi/EFI/Microsoft/Boot/cs-CZ
/efi/EFI/Microsoft/Boot/cs-CZ/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/cs-CZ/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/cs-CZ/memtest.efi.mui
/efi/EFI/Microsoft/Boot/da-DK
/efi/EFI/Microsoft/Boot/da-DK/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/da-DK/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/da-DK/memtest.efi.mui
/efi/EFI/Microsoft/Boot/de-DE
/efi/EFI/Microsoft/Boot/de-DE/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/de-DE/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/de-DE/memtest.efi.mui
/efi/EFI/Microsoft/Boot/el-GR
/efi/EFI/Microsoft/Boot/el-GR/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/el-GR/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/el-GR/memtest.efi.mui
/efi/EFI/Microsoft/Boot/en-GB
/efi/EFI/Microsoft/Boot/en-GB/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/en-GB/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/en-US
/efi/EFI/Microsoft/Boot/en-US/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/en-US/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/en-US/memtest.efi.mui
/efi/EFI/Microsoft/Boot/es-ES
/efi/EFI/Microsoft/Boot/es-ES/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/es-ES/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/es-ES/memtest.efi.mui
/efi/EFI/Microsoft/Boot/es-MX
/efi/EFI/Microsoft/Boot/es-MX/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/es-MX/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/et-EE
/efi/EFI/Microsoft/Boot/et-EE/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/et-EE/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/fi-FI
/efi/EFI/Microsoft/Boot/fi-FI/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/fi-FI/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/fi-FI/memtest.efi.mui
/efi/EFI/Microsoft/Boot/fr-CA
/efi/EFI/Microsoft/Boot/fr-CA/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/fr-CA/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/fr-FR
/efi/EFI/Microsoft/Boot/fr-FR/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/fr-FR/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/fr-FR/memtest.efi.mui
/efi/EFI/Microsoft/Boot/hr-HR
/efi/EFI/Microsoft/Boot/hr-HR/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/hr-HR/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/hu-HU
/efi/EFI/Microsoft/Boot/hu-HU/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/hu-HU/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/hu-HU/memtest.efi.mui
/efi/EFI/Microsoft/Boot/it-IT
/efi/EFI/Microsoft/Boot/it-IT/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/it-IT/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/it-IT/memtest.efi.mui
/efi/EFI/Microsoft/Boot/ja-JP
/efi/EFI/Microsoft/Boot/ja-JP/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/ja-JP/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/ja-JP/memtest.efi.mui
/efi/EFI/Microsoft/Boot/kdnet_uart16550.dll
/efi/EFI/Microsoft/Boot/kdstub.dll
/efi/EFI/Microsoft/Boot/kd_02_10df.dll
/efi/EFI/Microsoft/Boot/kd_02_10ec.dll
/efi/EFI/Microsoft/Boot/kd_02_1137.dll
/efi/EFI/Microsoft/Boot/kd_02_14e4.dll
/efi/EFI/Microsoft/Boot/kd_02_15b3.dll
/efi/EFI/Microsoft/Boot/kd_02_1969.dll
/efi/EFI/Microsoft/Boot/kd_02_19a2.dll
/efi/EFI/Microsoft/Boot/kd_02_1af4.dll
/efi/EFI/Microsoft/Boot/kd_02_8086.dll
/efi/EFI/Microsoft/Boot/kd_07_1415.dll
/efi/EFI/Microsoft/Boot/kd_0C_8086.dll
/efi/EFI/Microsoft/Boot/ko-KR
/efi/EFI/Microsoft/Boot/ko-KR/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/ko-KR/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/ko-KR/memtest.efi.mui
/efi/EFI/Microsoft/Boot/lt-LT
/efi/EFI/Microsoft/Boot/lt-LT/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/lt-LT/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/lv-LV
/efi/EFI/Microsoft/Boot/lv-LV/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/lv-LV/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/memtest.efi
/efi/EFI/Microsoft/Boot/nb-NO
/efi/EFI/Microsoft/Boot/nb-NO/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/nb-NO/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/nb-NO/memtest.efi.mui
/efi/EFI/Microsoft/Boot/nl-NL
/efi/EFI/Microsoft/Boot/nl-NL/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/nl-NL/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/nl-NL/memtest.efi.mui
/efi/EFI/Microsoft/Boot/pl-PL
/efi/EFI/Microsoft/Boot/pl-PL/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/pl-PL/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/pl-PL/memtest.efi.mui
/efi/EFI/Microsoft/Boot/pt-BR
/efi/EFI/Microsoft/Boot/pt-BR/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/pt-BR/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/pt-BR/memtest.efi.mui
/efi/EFI/Microsoft/Boot/pt-PT
/efi/EFI/Microsoft/Boot/pt-PT/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/pt-PT/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/pt-PT/memtest.efi.mui
/efi/EFI/Microsoft/Boot/qps-ploc
/efi/EFI/Microsoft/Boot/qps-ploc/memtest.efi.mui
/efi/EFI/Microsoft/Boot/ro-RO
/efi/EFI/Microsoft/Boot/ro-RO/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/ro-RO/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/ru-RU
/efi/EFI/Microsoft/Boot/ru-RU/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/ru-RU/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/ru-RU/memtest.efi.mui
/efi/EFI/Microsoft/Boot/sk-SK
/efi/EFI/Microsoft/Boot/sk-SK/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/sk-SK/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/sl-SI
/efi/EFI/Microsoft/Boot/sl-SI/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/sl-SI/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/sr-Latn-RS
/efi/EFI/Microsoft/Boot/sr-Latn-RS/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/sr-Latn-RS/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/sv-SE
/efi/EFI/Microsoft/Boot/sv-SE/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/sv-SE/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/sv-SE/memtest.efi.mui
/efi/EFI/Microsoft/Boot/tr-TR
/efi/EFI/Microsoft/Boot/tr-TR/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/tr-TR/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/tr-TR/memtest.efi.mui
/efi/EFI/Microsoft/Boot/uk-UA
/efi/EFI/Microsoft/Boot/uk-UA/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/uk-UA/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/winsipolicy.p7b
/efi/EFI/Microsoft/Boot/zh-CN
/efi/EFI/Microsoft/Boot/zh-CN/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/zh-CN/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/zh-CN/memtest.efi.mui
/efi/EFI/Microsoft/Boot/zh-TW
/efi/EFI/Microsoft/Boot/zh-TW/bootmgfw.efi.mui
/efi/EFI/Microsoft/Boot/zh-TW/bootmgr.efi.mui
/efi/EFI/Microsoft/Boot/zh-TW/memtest.efi.mui
/efi/EFI/Microsoft/Boot/BOOTSTAT.DAT
/efi/EFI/Microsoft/Boot/Fonts
/efi/EFI/Microsoft/Boot/Fonts/chs_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/cht_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/jpn_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/kor_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/malgunn_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/malgun_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/meiryon_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/meiryo_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/msjhn_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/msjh_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/msyhn_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/msyh_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/segmono_boot.ttf
/efi/EFI/Microsoft/Boot/Fonts/segoen_slboot.ttf
/efi/EFI/Microsoft/Boot/Fonts/segoe_slboot.ttf
/efi/EFI/Microsoft/Boot/Fonts/wgl4_boot.ttf
/efi/EFI/Microsoft/Boot/Resources
/efi/EFI/Microsoft/Boot/Resources/bootres.dll
/efi/EFI/Microsoft/Boot/Resources/fr-FR
/efi/EFI/Microsoft/Boot/Resources/fr-FR/bootres.dll.mui
/efi/EFI/Microsoft/Recovery
/efi/EFI/Microsoft/Recovery/BCD
/efi/EFI/Microsoft/Recovery/BCD.LOG
/efi/EFI/Microsoft/Recovery/BCD.LOG1
/efi/EFI/Microsoft/Recovery/BCD.LOG2
/efi/mach_kernel
/efi/System
/efi/System/Library
/efi/System/Library/CoreServices
/efi/System/Library/CoreServices/SystemVersion.plist
/efi/initramfs-linux.img
/efi/initramfs-linux-fallback.img
/efi/intel-ucode.img
/efi/vmlinuz-linux

Can you explain what you have done here?

What you have looks nothing like one of grub installs or our systemd-boot setup.

As I explained to you, I had PopOS at the beginning, I then added EndeavorOS as a dual boot, selecting not to install a boot loader when I installed it. At that time I was using grub, I then decided to remove PopOS and so I used systemd-boot for EndeavorOS only. Subsequently I installed Windows alongside which has its own boot loader.
Everything may not be done very well because I’m not very experienced with grub, systemd-boot and other boot loaders but I arrived at a functional system.
The only problem currently is that the kernel must be located in /efi for EndeavourOS to work while the generation is done in /boot.
There are certainly unnecessary files in /efi but I no longer dare delete them because I don’t know their usefulness and I’m afraid of breaking them.

Well, except for the fact that you have to manually copy files after each update…

That is how systemd-boot works. It reads the files from the EFI partition.

There are two potential paths forward for you here:

  • You can migrate to EndeavousOS’s systemd-boot tooling/automation
  • You can keep your custom setup and either mount or symlink your ESP to /boot

Ok so if I understand correctly, default systemd-boot use /boot but the EndeavourOS version of systemd-boot use /efi, I am right ?

Well, except for the fact that you have to manually copy files after each update…

Yes :confused:

There are two potential paths forward for you here:
You can migrate to EndeavousOS’s systemd-boot tooling/automation
You can keep your custom setup and either mount or symlink your ESP to /boot

Stay on the “custom setup” can break someday, no ?
What’s the easiet ?
How to migrate to EndeavourOS’s systemd-boot ?

Sorry for all there questions :sweat_smile:.

systemd-boot itself doesn’t care much where you mount the EFI partition. That is something you decide. However, you are using eos-dracut which writes the data to /boot.

Neither is particularly hard.

Something like this should work:

# remove the old automation package
sudo pacman -R eos-dracut

# remove the kernel and images from ESP so it doesn't fill up
sudo rm /efi/vmlinuz-linux
sudo rm /efi/in*.img

#remove your old entry
sudo rm /efi/loader/entries/endeavour.conf

# install the EOS systemd-boot automation
sudo pacman -S kernel-install-for-dracut

# reinstall the kernel to ensure everything it working
sudo pacman -S linux linux-headers

Obviously, you can ignore the comments, those are just for your understanding

2 Likes

After doing all the commands you said, it works! I restarted the PC and it started normally.
Is /boot still useful ? Can I delete it ?
Thank you for your help and thank you for taking the time to help me !

1 Like

You probably shouldn’t delete but you can remove the kernel and boot images from it.

Mine only has the *-ucode.img files in it.

1 Like

Ok ! Thank you :slight_smile:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.