LTS Kernel - failed to mount /sysroot

I’m currently unable to boot with the linux-lts kernel. I tried reinstall and downgrade with the same effect. There is a “failed to mount /sysroot error message”, and the system stops booting. However a regular kernel and lts-fallback proceeds without errors, and the system starts.

After some digging, I think the problem (at least in my system) is with ext4 support and how the Linux-lts kernel is built, and how dracut generates the initrd for it. For some reason lts kernel has ext4 support compiled as a module, which is opposite to the regular kernel, where ext4 is in the image itself. When dracut generates initrd for the lts kernel, add the ext4 module only for the lts-fallback. That is why lts kernel fails to mount filesystem due to lack of ext4 support at boot.

Output of lsinitrd command for 6.12.27-1-lts:

lts:
[root@root 6.12.27-1-lts]# lsinitrd initrd |grep ext4
usr/bin/fsck.ext4

lts-fallback:
[root@root 6.12.27-1-lts]# lsinitrd initrd-fallback |grep ext4
usr/bin/fsck.ext4
usr/lib/modules/6.12.27-1-lts/kernel/fs/ext4/ext4.ko.zs

List of kernel modules folder for 6.12.27-1-lts and 6.14.5-arch1-1
[root@root 6.12.27-1-lts]$ find -iname ‘ext4
./kernel/fs/ext4
./kernel/fs/ext4/ext4.ko.zst
./build/include/config/EXT4_FS_POSIX_ACL
./build/include/config/EXT4_FS
./build/include/config/EXT4_FS_SECURITY
./build/include/config/EXT4_USE_FOR_EXT2
./build/include/trace/events/ext4.h
./build/include/uapi/linux/ext4.h
./build/fs/ext4

[root@root 6.14.5-arch1-1]$ find -iname ‘ext4
./build/include/config/EXT4_FS_POSIX_ACL
./build/include/config/EXT4_FS
./build/include/config/EXT4_FS_SECURITY
./build/include/config/EXT4_USE_FOR_EXT2
./build/include/trace/events/ext4.h
./build/include/uapi/linux/ext4.h
./build/fs/ext4

3 Likes

Welcome to the EndeavourOS forum. I hope you enjoy your time here.

The last two LTS kernel updates have failed for me also.
It won’t even get into boot up very far at all.

It failed on my daily driver with Intel chip set and video.
Also failed on an AMD chip set and AMD video.

Pudge

EDIT:
The following errors are on the screen after failed boot up .
[FAILED] Failed to mount /sysroot
[DEPEND] Dependency failed for Initrd Root File System
[DEPEND] Dependency failed for Mountpoints Configured in the Real Root

1 Like

I just tried on my Nvidia PC. Won’t boot for me either.

1 Like

I have the same issue.
We can try to regenerate initramfs with dracut.

But before we should narrow down the issue.

What kind of boot do you use?
systemd-boot; grub; …

How did you generate initramfs?
With dracut; mkinitcpio; …


I use systemd-boot, dracut and LUKS.
I see the same errors as @Pudge

FAILED] Failed to mount /sysroot
[DEPEND] Dependency failed for Initrd Root File System
[DEPEND] Dependency failed for Mountpoints Configured in the Real Root

@joekamprad is our issue related to Mkinitcpio update and changes may need some manual intervention ?

Found https://bbs.archlinux.org/viewtopic.php?id=273254

Had this too. Found https://www.reddit.com/r/EndeavourOS/comments/1kec8oi/emergency_shell_mode_due_to_sysroot_being_unable/ and added the ext4.conf with add_drivers+=" ext4 ", reinstalled linux-lts, and was able to boot.

1 Like

This configuration instructs Dracut to explicitly include the ext4 driver in the initramfs by adding a file to dracut.conf.d.

However, if Dracut is failing to detect and include ext4 automatically when it is needed (e.g., for the root filesystem), this should be fixed upstream in Dracut or its integration, rather than relying on a manual workaround.
Hope my assumptions are valid, feel free to correct me :wink:

1 Like

you have updated system to latest LTS kernel update?

I can no longer reproduce the issues booting on LTS here.

EndeavourOS is not using mkinitcpio anymore for a long time already.

I never really use LTS. It’s just there in case I need it for one reason or another. Fully updated. Still cannot log into LTS.

Grub?
used sudo dracut-rebuild
system encrypted?
BTRFS?

Systemd

ext4

No

No

Seems we see 2 different issues in a way here.. this one is still there i have the same here

boot on LTS ext4 systemd-boot same exactly error on boot.

This is strange. I have no problems booting into the standard kernel, ZEN, or CachyOS kernels.

I see the same error. as @UncleSpellbinder

Grub?

systemd

used sudo dracut-rebuild

yes

system encrypted

yes

BTRFS?

no BTRFS, I use ext4

yes
This is my current LTS-version:
6.12.27-1

would be reinstall-kernels on systemd-boot

what is strange? :wink:

i have the exact same error thats LTS kernel not booting

What’s strange is that this only affects the LTS kernel. It just seems odd. :person_shrugging:

I had same problem with the linux-lts kernel and discovered there seems to be a bug with dracut version 107. I downgraded to dracut version 106 and was able to update linux-lts kernel.

3 Likes

Welcome to the forum, @kq4zj. Thanks for the info!

I’m not concerned as I only have LTS installed for testing purposes if something goes wrong on another kernel. So, hopefully the next dracut update corrects this.