You are not logged in.

#1 2023-05-12 18:36:03

A simple duck
Member
Registered: 2023-05-12
Posts: 18

[SOLVED] Unable to boot into a snapshot(BTRFS) from grub-btrfs

I installed grub-btrfs , along with btrbk to manage snapshots. The snapshots taken by btrbk are read-only, so I added the grub-btrfs-overlayfs hook to /etc/mkinitcpio.conf (and subsequently ran mkinitcpio -p linux) which should allow me to boot into read-only snapshots. All my snapshots appear in grub but when I try to boot into any of them, the screen gets stuck on the HP logo.

The structure of my subvolumes is as follows
❯ sudo btrfs subvolume list /
ID 256 gen 3443 top level 5 path @
ID 258 gen 3443 top level 5 path @log
ID 259 gen 3331 top level 5 path @pkg
ID 260 gen 3443 top level 5 path @.snapshots
ID 261 gen 2241 top level 256 path var/lib/portables
ID 262 gen 2241 top level 256 path var/lib/machines

So how do I boot into the snapshots directly from grub?

PS: This was my first post :)

Last edited by A simple duck (2023-05-15 09:23:47)

Offline

#2 2023-05-15 09:23:22

A simple duck
Member
Registered: 2023-05-12
Posts: 18

Re: [SOLVED] Unable to boot into a snapshot(BTRFS) from grub-btrfs

For anyone else with the same issue , the issue was with the grub-btrfs-overlayfs hook not working when systemd hook is used , simply replace the systemd hook with udev smile

Offline

#3 2023-05-22 03:35:49

horga83
Member
Registered: 2022-04-09
Posts: 8

Re: [SOLVED] Unable to boot into a snapshot(BTRFS) from grub-btrfs

It helps if you actually explain what you did with a bit of detail rather than just a very hi level use udev.
Thanks

Offline

#4 2023-05-22 05:28:34

A simple duck
Member
Registered: 2023-05-12
Posts: 18

Re: [SOLVED] Unable to boot into a snapshot(BTRFS) from grub-btrfs

Edit /etc/mkinitcpio.conf and replace the word systemd in the hooks, with udev
then regenerate the initramfs using the following command

 # mkinitcpio -P

You might want to read the wiki for more info
Steps on how to boot into a read only snapshot from grub-btrfs

Have a good day smile

Last edited by A simple duck (2023-05-22 05:32:46)

Offline

Board footer

Powered by FluxBB