aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2014-08-10 17:15:05 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-08-10 17:15:05 -0500
commit7b744befac2049eb6372a7f0c5420c740aa0a4ea (patch)
tree2285b6914747f1baca83410d630fb18644d14521
parentfaaaab4bf540b4df011abea5985963dbc9e1646a (diff)
bootmisc: do not run the clean_run function in an LXC container
-rw-r--r--init.d/bootmisc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
index 3e56ebcb..2ec075f3 100644
--- a/init.d/bootmisc.in
+++ b/init.d/bootmisc.in
@@ -117,7 +117,7 @@ migrate_to_run()
clean_run()
{
- [ "$RC_SYS" = VSERVER ] && return 0
+ [ "$RC_SYS" = VSERVER -o "$RC_SYS" = LXC ] && return 0
local dir
dir=$(mktemp -d)
mount --bind / $dir