if ! lxc-info -n $name | grep RUNNING ; then
lxc_log "$name start"
- mount $rootfs -o remount,rw # fix debian upgrade which remounts dir ro
+ dev=`df -P $rootfs | tail -1 | cut -d" " -f1`
+ mount $dev -o remount,rw # fix debian upgrade which remounts dir ro
lxc-start -n $name -o /tmp/${name}.log -d
lxc-wait -n $name -s RUNNING
lxc-info -n $name