From 290899274185a36102b7545f445dae00c0ef6b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 7 Aug 2016 16:07:30 +0200 Subject: [PATCH] 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 --- linux/aux-tools/prepare-volatile-img.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/linux/aux-tools/prepare-volatile-img.sh b/linux/aux-tools/prepare-volatile-img.sh index b32142b7..822affa9 100755 --- a/linux/aux-tools/prepare-volatile-img.sh +++ b/linux/aux-tools/prepare-volatile-img.sh @@ -20,5 +20,6 @@ if [ -e "$FILENAME" ]; then exit 1 fi +umask 002 TOTAL_SIZE=$[ $ROOT_SIZE + $SWAP_SIZE + 512 ] truncate -s ${TOTAL_SIZE}M "$FILENAME"