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
This commit is contained in:
Marek Marczykowski-Górecki 2020-11-06 16:00:31 +01:00
parent 2d7a10add7
commit 05a213a7e3
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -7,7 +7,7 @@
set -e set -e
dev=/dev/xvdb dev=/dev/xvdb
max_size=1073741824 # check at most 1 GiB max_size=10485760 # check at most 10 MiB
if [ -e "$dev" ] ; then if [ -e "$dev" ] ; then
# The private /dev/xvdb device is present. # The private /dev/xvdb device is present.