[pve-devel] [PATCH manager] add initramfs conf snippet disabling RESUME

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Jun 22 11:29:14 CEST 2017


otherwise, every boot will wait for the swap ZVol on root on
ZFS systems.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 Makefile           | 2 ++
 pve-initramfs.conf | 2 ++
 2 files changed, 4 insertions(+)
 create mode 100644 pve-initramfs.conf

diff --git a/Makefile b/Makefile
index 2f075607..ecae4d88 100644
--- a/Makefile
+++ b/Makefile
@@ -68,6 +68,8 @@ install: country.dat vzdump.conf vzdump-hook-script.pl pve-apt.conf mtu bridgevl
 	install -D -m 0755 vlan ${DESTDIR}/etc/network/if-pre-up.d/vlan
 	install -D -m 0755 vlan-down ${DESTDIR}/etc/network/if-post-down.d/vlan
 
+	install -D -m 0644 pve-initramfs.conf ${DESTDIR}/etc/initramfs-tools/conf.d/pve-initramfs.conf
+
 	install -m 0644 vzdump-hook-script.pl ${DOCDIR}/examples/vzdump-hook-script.pl
 	install -m 0644 spice-example-sh ${DOCDIR}/examples/spice-example-sh
 	install -m 0644 country.dat ${DESTDIR}/usr/share/${PACKAGE}
diff --git a/pve-initramfs.conf b/pve-initramfs.conf
new file mode 100644
index 00000000..fc6bedca
--- /dev/null
+++ b/pve-initramfs.conf
@@ -0,0 +1,2 @@
+# disable suspend-to-disk, as it delays boot on systems with root on ZFS
+RESUME=none
-- 
2.11.0





More information about the pve-devel mailing list