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:
parent
2d7a10add7
commit
05a213a7e3
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user