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#3178pull/36/head mm_f7b8a79c
parent
915c8f0cf7
commit
f7b8a79ce6
@ -0,0 +1,5 @@
|
||||
# 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"
|
Loading…
Reference in new issue