Browse Source

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
Marek Marczykowski-Górecki 3 years ago
parent
commit
05a213a7e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      init/setup-rwdev.sh

+ 1 - 1
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.