Open CPU-Blanc opened 3 months ago
I have a hunch on where the issue might be occurring. Is it possible this is happening within the initramfs hook? My knowledge is a little lacking, but is it possible that during the overlayfs mounting step, it's simply mounting the btrfs partition without passing a subvol, and so it's mounting the default subvolume to it?
I will look at the script to see if I can make heads or tails of it.
I switched from Timeshift to Snapper/btrfs assitant because Timeshit was sometimes messy with restoration. I never had restoration issue with btrfs assistant. But i understand, when you do not trust an app, well, you do not want to use it even-though someone else says it works fine.
You solution with systemd-boot and grub in UEFI sounds interesting, but i really do not trust my UEFI as sometimes it does not keep all entries in NVRAM, i do not why.
For instance, if i boot on a usb key (like ventoy), and then i want to boot again the normal way it cannot find anymore my nvme boot entry and had to boot on live iso and set it with efibootmgr
initramfs hook?
There is definitely an issue with the overlay
initramfs hook?
There is definitely an issue with the overlay
That works for me.
That works for me.
lol What is your distro, is it arch based also ?
That works for me.
lol What is your distro, is it arch based also ?
Vanilla Arch, SDDM/Plasma6
initramfs hook?
There is definitely an issue with the overlay
That works for me.
Yes, but by the way, is it the latest overlayfs version ? Or you said it was sd-overlay, maybe it's different. I know there was several overlay versions here.
initramfs hook?
There is definitely an issue with the overlay
That works for me.
Yes, but by the way, is it the latest overlayfs version ? Or you said it was sd-overlay, maybe it's different. I know there was several overlay versions here.
Works with both my sd-overlay and I tested it with grub-btrfs-overlayfs to be sure. Looking at the current overlay it makes sure there is a ro root ([[ $(btrfs property get ${root_mnt} ro) != "ro=false" ]]) then creates a rw overlay for it in ram. I am not really seeing a smoking gun.
The other thing is that I do not need overlayfs for a snapshot to boot without errors on SDDM/Plasma.
My Arch install is running SDDM/Hyprland, and it cannot run from ro snapshots.
This is the overlayfs hook if anyone wants to look into it. https://github.com/Antynea/grub-btrfs/blob/master/initramfs/Arch%20Linux/overlay_snap_ro-hook
mkinitcpio
with systemd hook did not support overlayfs-hook a few months ago, AFAIK.
If you need mkinitcpio
on Arch, try changing systemd hook to Busybox init.
OR
One solution is Dracut with pure Systemd support and has no issue with overlayfs hook, but its setup must be done by hand.
The overlayfs bug has been fixed in Kernel 6.10.
If you need some Kernel versions with the overlayfs bug, look at a solution:
https://gitlab.com/garuda-linux/pkgbuilds/-/commit/26d7f8496c242265b6902ee9188f134194cd0c0b
mkinitcpio
with systemd hook did not support overlayfs-hook a few months ago, AFAIK.If you need
mkinitcpio
on Arch, try changing systemd hook to Busybox init.
Thanks for chipping in! Sadly I am already using a busybox based init and the does not work unless I manually set the snapshot as read-write.
Hello! I know this seems to be a semi-common problem, and I've followed the usual advice to fix it, but I'm still left scratching my head. I've followed the readme and added the required hooks. The system does mount root as read-write, so the hooks are working. The issue is
/var/log
, which is a seperate subvolume on my system, is still being mounted read-only and is causing Xorg/Light Display Manager to freak.Any ideas on how to get overlyfs to work correctly with this subvolume, if that is indeed the problem?
I'm running EndeavourOS
My subvolume layout is:
Relevant fstab entries:
It would appear as though any subvolume that's on the same disk as
/
when booting into the snapshot are mountedro
, but root itself isrw
. Partitions/subvolumes from other drives are rw.ie
Booting into a read-write snapshot does not present this issue, it's only when attempting to boot into a read-only one. Any help troubleshooting would be greatly appreciated.