From 05a213a7e3b78af053e6a06872e178cdc7949b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 6 Nov 2020 16:00:31 +0100 Subject: [PATCH] Relax private.img condition for mkfs even further Check just 10 MiB of the private volume + blkid before considering it empty and calling mkfs. Avoid reading 1GB of data at the VM boot - which should speed up startup even further, especially for fresh DispVMs. QubesOS/qubes-issues#3758 --- init/setup-rwdev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/setup-rwdev.sh b/init/setup-rwdev.sh index e8ac72c..6ab9d2f 100755 --- a/init/setup-rwdev.sh +++ b/init/setup-rwdev.sh @@ -7,7 +7,7 @@ set -e dev=/dev/xvdb -max_size=1073741824 # check at most 1 GiB +max_size=10485760 # check at most 10 MiB if [ -e "$dev" ] ; then # The private /dev/xvdb device is present.