-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mount option space_cache makes snapshots unbootable #189
Comments
I can't reproduce your error. You indicate that Are you using a multi-device Btrfs filesystem ? raid array or whatever ... Do you use a modified initramfs ? No initramfs ?
Generally, this means that there is a filesystem detection problem on your device.
Possibly, if we can determine that the problem lies here.
Maybe |
So I did some more testing today; I modified the fstab to use I also remembered I have an Arch vm setup almost exactly as my pc, just using To answer your questions:
Nope, just plain btrfs.
I'm using mkinitcpio, I added the Finally, trying to mount root from the emergency shell (meaning: I booted a snapshot using the |
Are you using a multi-device Btrfs filesystem ? raid array or whatever ...
Do you use a modified initramfs ? No initramfs ? Are you using mkinitcpio or dracut to generate your initramfs ? Did you change any options in the mkinitcpio.conf file ?
Seems consistent to me.
This confirms a misconfiguration of your fstab in the snapshot you wish to boot from.
You exceeded my expectations.
NOTE: From your original post:
So this is the result of a user configuration error. Should we give the user the ability to remove settings that they feel are incorrect when 100% of the time it is their fault? The fstab file can be generated automatically or edited by the user, however it is up to the user that this file be consistent with his system.
I would say no, you don't correct the cause, you correct the effect. Thank you for doing all these tests. |
However a problem with btrfs persists. |
I 100% agree with your thoughts. In the end just misunderstood the effects of the
Maybe? Rembember that I could boot just fine from the root subvolume, where in grub there was no |
Thanks, Their documentation lacks a precise explanation.
So I understand that if we use
Ok, is the cache used ? Is the right version detected ? |
This is a known issue with kernel 5.15, Calamares adds this advisory: https://github.com/calamares/calamares/blob/calamares/src/modules/fstab/fstab.conf
|
I think this is stale. Is this still a problem with newer kernels? |
OS: Arch linux
Currently all my mounts in /etc/fstab, most importantly my "/@" root subvolume, have the
space_cache
mount option;because grub-btrfs pretty much just copies the fstab options, grub tries to mount the snapshots with space_cache as well, leading to the following boot error message:
Removing the
space_cache
option by editing the grub menu allows to boot correctly.I believe some regex filters should to the trick for just ignoring this mount option.
Some references:
41_snapshots-btrfs
):/etc/fstab
):/boot/grub/grub.cfg
):/boot/grub/grub-btrfs.cfg
):PS: another good thing to do would be to check if the snapshot is read-only, and if it is change the "rw" option to "ro".
The text was updated successfully, but these errors were encountered: