grub-btrfs
grub-btrfs copied to clipboard
I use dracut, how do I boot from a read-only snapshot.
/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.
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.
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.
we have instructions for this here now https://github.com/Antynea/grub-btrfs/tree/master/initramfs#dracut-based-distros