瀏覽代碼

grub: add noresume to kernel cmdline
Under R4.0, when Debian HVMs are created from the debian-9 template, they hang on boot for 30 seconds without this option.

awokd 6 年之前
父節點
當前提交
6c965a6dac
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      misc/grub.qubes

+ 3 - 0
misc/grub.qubes

@@ -6,4 +6,7 @@ GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX root=/dev/mapper/dmroot console=hvc0 con
 # make SWIOTLB smaller - it isn't really needed unless PCI passthrough is used,
 # and even then, 16MB is enough
 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX swiotlb=8192"
+# add noresume - to avoid a 30 second hang on Debian HVM boot as it tries to
+# locate swap space for hibernation
+GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX noresume"
 GRUB_TIMEOUT=0