grub-btrfs icon indicating copy to clipboard operation
grub-btrfs copied to clipboard

I use dracut, how do I boot from a read-only snapshot.

Open daiaji opened this issue 4 years ago • 2 comments

/usr/lib/dracut/modules.d/ There seems to be some dracut scripts under this path. But I don't know how to add the grub-btrfs-overlayfs script.

daiaji avatar Jul 09 '21 11:07 daiaji

The grub-btrfs-overlayfs script is only written for mkinitcpio.

dracut works differently and requires a specific script to match its mechanisms. I don't have enough knowledge on dracut to do this.

You can try it yourself, or wait for the community to work on it.

Antynea avatar Jul 14 '21 10:07 Antynea

I did some porting attempts of dracut, and found that none of the hooks in the document seem to make grub-btrfs-overlayfs take effect. It seems that the initialization process of dracut is somewhat different from that of mkinitcpio, and I don't have any relevant knowledge.

daiaji avatar Jul 17 '21 05:07 daiaji

we have instructions for this here now https://github.com/Antynea/grub-btrfs/tree/master/initramfs#dracut-based-distros

Schievel1 avatar Apr 13 '23 09:04 Schievel1