prepare-volatile-img.sh: create volatile.img group accessible

Otherwise qvm-create-default-dvm may fail to include it in
saved-cows.tar, which will lead to DispVM being not really disposable.

Fixes QubesOS/qubes-issues#2200
This commit is contained in:
Marek Marczykowski-Górecki 2016-08-07 16:07:30 +02:00
parent d0ddb3d17c
commit 2908992741
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -20,5 +20,6 @@ if [ -e "$FILENAME" ]; then
exit 1 exit 1
fi fi
umask 002
TOTAL_SIZE=$[ $ROOT_SIZE + $SWAP_SIZE + 512 ] TOTAL_SIZE=$[ $ROOT_SIZE + $SWAP_SIZE + 512 ]
truncate -s ${TOTAL_SIZE}M "$FILENAME" truncate -s ${TOTAL_SIZE}M "$FILENAME"