projects
/
sysadmin-cookbook
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remount rootfs before start to fix debian upgrades
[sysadmin-cookbook]
/
recepies
/
lxc
/
lxc-watchdog.sh
diff --git
a/recepies/lxc/lxc-watchdog.sh
b/recepies/lxc/lxc-watchdog.sh
index
9fc1600
..
5c821fa
100755
(executable)
--- a/
recepies/lxc/lxc-watchdog.sh
+++ b/
recepies/lxc/lxc-watchdog.sh
@@
-133,6
+133,7
@@
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
lxc-start -n $name -o /tmp/${name}.log -d
lxc-wait -n $name -s RUNNING
lxc-info -n $name