From 1abfe3b6629ed748a74169387661a39f34464db3 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 29 Mar 2011 18:00:40 +0000 Subject: [PATCH] remote device rw on start git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@244 191e9f34-6774-4a6d-acfc-7664dacd4a2a --- recepies/lxc/lxc-watchdog.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recepies/lxc/lxc-watchdog.sh b/recepies/lxc/lxc-watchdog.sh index 5c821fa..93ffcfe 100755 --- a/recepies/lxc/lxc-watchdog.sh +++ b/recepies/lxc/lxc-watchdog.sh @@ -133,7 +133,8 @@ lxc_start() { 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 -- 2.20.1