f7b8a79ce6
When root device is available read-write (TemplateVM/StandaloneVM), its mounted directly, instead of using device-mapper layer. But /dev/mapper/dmroot still needs to exists (it is pointed from /etc/fstab), otherwise various tools, including grub-mkconfig get confused. Create a symlink using udev rule. It is already done in initramfs, and in case of Fedora that udev rule/symlink survive switching to non-initramfs udev, but not on Debian. So, add appropriate udev rules file. Fixes QubesOS/qubes-issues#3178
6 lines
261 B
Plaintext
6 lines
261 B
Plaintext
# Create /dev/mapper/dmroot symlink on TemplateVM/StandaloneVM to make
|
|
# grub-mkconfig happy.
|
|
# On TemplateBasedVM, it is really a device mapper device.
|
|
|
|
SUBSYSTEM=="block", ENV{ID_PART_ENTRY_NAME}=="Root\x20filesystem", ATTR{ro}=="0", SYMLINK+="mapper/dmroot"
|