Browse Source

Minor fixes in mount-home.sh

Hide unneeded messages.
Marek Marczykowski-Górecki 9 years ago
parent
commit
ff63a0b876
2 changed files with 2 additions and 2 deletions
  1. 1 1
      vm-systemd/mount-home.sh
  2. 1 1
      vm-systemd/qubes-mount-home.service

+ 1 - 1
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

+ 1 - 1
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]