don't wrap df output
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / 2-lxc-mount-point.sh
index ebb3a21..d4dfc6b 100755 (executable)
@@ -10,6 +10,6 @@ ssh_lxc() {
 
 ssh_lxc /etc/init.d/lxc-watchdog status
 mnt=`cat $host/lxc-watchdog | grep ^$host | awk '{ print $4 }' | tee $host/mnt`
-ssh_lxc df -h $mnt
-size=`cat $host/df | grep /mnt/rt | awk '{ print $2 }' | tee $host/size`
+ssh_lxc df -P -h $mnt
+size=`cat $host/df | grep /mnt/$host | awk '{ print $2 }' | tee $host/size`