commit: 7b744befac2049eb6372a7f0c5420c740aa0a4ea
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Sun Aug 10 22:15:05 2014 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Aug 10 22:15:05 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=7b744bef
bootmisc: do not run the clean_run function in an LXC container
---
init.d/bootmisc.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
index 3e56ebc..2ec075f 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