Antynea / grub-btrfs

Include btrfs snapshots at boot options. (Grub menu)
GNU General Public License v3.0
688 stars 73 forks source link

Does the grub-btrfs now support boot from snapshots by default? #282

Open tav1229 opened 1 year ago

tav1229 commented 1 year ago

From what I watched on youtube there are extra steps need to be done before we can boot into the snapshot from the btrfs menu, but somehow I didn't need to is this because grub-btrfs now do that automatically or my snapshots are writable?

tav1229 commented 1 year ago

despite being able to boot to those snapshots, I can't run snapper-rollback from there, it says can't create /btrfsroot because file system is read only,

I have /var/log on a separate volume, idk if this has anything to do

Schievel1 commented 1 year ago

Can you provide a link to what you watched on YouTube? This is all quite confusing without context

tav1229 commented 1 year ago

Can you provide a link to what you watched on YouTube? This is all quite confusing without context

https://youtu.be/FDTkITEKS9g from 32:20 to 51:45

Summary: The snapshots are read only so he needed to add some script to make a writable copy of that snapshot to boot into it. I don't know why but I didn't need the script, I can boot from the grub btrfs menu without any extra steps

geckolinux commented 9 months ago

On spirallinux.github.io in the "Special thanks to" section you can find all the references that helped me eventually reach a workable solution for SpiralLinux. It did require patching snapper-rollback though, you can find my modified version in /usr/sbin/snapper-rollback .