From ff63a0b876ca50240491f1c22b6d38881b1af83e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 11 Apr 2015 02:51:10 +0200 Subject: [PATCH] Minor fixes in mount-home.sh Hide unneeded messages. --- vm-systemd/mount-home.sh | 2 +- vm-systemd/qubes-mount-home.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vm-systemd/mount-home.sh b/vm-systemd/mount-home.sh index fcff60c..4fd761e 100644 --- a/vm-systemd/mount-home.sh +++ b/vm-systemd/mount-home.sh @@ -2,7 +2,7 @@ # check if private.img (xvdb) is empty - all zeros private_size_512=`blockdev --getsz /dev/xvdb` -if dd if=/dev/zero bs=512 count=$private_size_512 | diff /dev/xvdb - >/dev/null; then +if dd if=/dev/zero bs=512 count=$private_size_512 2>/dev/null | diff /dev/xvdb - >/dev/null; then # the device is empty, create filesystem echo "--> Virgin boot of the VM: creating filesystem on private.img" mkfs.ext4 -m 0 -q /dev/xvdb || exit 1 diff --git a/vm-systemd/qubes-mount-home.service b/vm-systemd/qubes-mount-home.service index 93b3f93..c6be2b5 100644 --- a/vm-systemd/qubes-mount-home.service +++ b/vm-systemd/qubes-mount-home.service @@ -1,5 +1,5 @@ [Unit] -Description=Mount /rw and /home, initialize them if needed +Description=Initialize and mount /rw and /home Before=qubes-gui-agent.service [Service]