Browse Source

grub: override GRUB_DEVICE with /dev/mapper/dmroot

Grub scripts are very persistent in trying to use what is currently
mounted as /. Even if currently (TemplateVM) /dev/xvda3 is mounted
directly, all the configuration should use /dev/mapper/dmroot, to work
also in AppVM.
GRUB_DEVICE is used in various places as root device (including
constructing root= parameter in some versions). Force it to
/dev/mapper/dmroot

QubesOS/qubes-issues#6174
Marek Marczykowski-Górecki 3 years ago
parent
commit
aa50b2fedc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      boot/grub.qubes

+ 1 - 0
boot/grub.qubes

@@ -1,5 +1,6 @@
 # make sure to use /dev/mapper/dmroot, not /dev/xvda directly - both have the
 # same fs, including UUID
+GRUB_DEVICE=/dev/mapper/dmroot
 GRUB_DISABLE_LINUX_UUID=true
 GRUB_DISABLE_OS_PROBER=true
 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX root=/dev/mapper/dmroot console=tty0 console=hvc0"