maximbaz / arch-secure-boot

UEFI Secure Boot for Arch Linux + btrfs snapshot recovery
ISC License
126 stars 8 forks source link

Does the tool support booting read-only snapshots in overlayfs mode? #27

Closed developer91234 closed 5 months ago

developer91234 commented 6 months ago

This is something present in grub-btrfs but I'd prefer a simpler tool because grub is too much of a black hole.

maximbaz commented 6 months ago

To be honest I don't know what an overlayfs is, this tool will simply boot in your snapshot, and if your snapshot is readonly, then it will remain readonly...

developer91234 commented 6 months ago

To be honest, I don't know either - otherwise I'd implement it myself lol - but here is the implementation: https://github.com/Antynea/grub-btrfs/blob/master/initramfs/readme.md

Apparently it's the only foolproof way to boot btrfs snapshots. Although I suppose if var is its own subvolume then it shouldn't be a problem.

maximbaz commented 6 months ago

Thanks for the link, no this is not supported then, this simply boots into whatever snapshot you have. I don't think doing overlayfs is in scope for this project to be honest, I was always able to boot into a readonly snapshot and fix my system when I needed to.

maximbaz commented 5 months ago

Closing for now, but if you or anyone else wants to continue discussing this idea, please just continue posting here on in a new thread. Thanks!