[lxc-devel] [PATCH 4/4] Fix removal of unneeded startup/shutdown scripts

Dwight Engen dwight.engen at oracle.com
Tue Oct 9 16:19:48 UTC 2012


Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
---
 templates/lxc-oracle.in |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in
index 314cd34..efd19ef 100644
--- a/templates/lxc-oracle.in
+++ b/templates/lxc-oracle.in
@@ -107,8 +107,8 @@ EOF
 
     # disable readahead in the container
     if [ $container_release_major = "6" -a -e $container_rootfs/etc/sysconfig/readahead ]; then
-	rm -f $container_root/etc/init/readahead-collector.conf
-	rm -f $container_root/etc/init/readahead-disable-services.conf
+	rm -f $container_rootfs/etc/init/readahead-collector.conf
+	rm -f $container_rootfs/etc/init/readahead-disable-services.conf
 	sed -i 's|READAHEAD="yes"|READAHEAD="no"|' $container_rootfs/etc/sysconfig/readahead
     fi
 
@@ -137,9 +137,9 @@ EOF
     # fix assumptions that plymouth is available
     sed -i 's|\[ "$PROMPT" != no \] && plymouth|[ "$PROMPT" != no ] \&\& [ -n "$PLYMOUTH" ] \&\& plymouth|' $container_rootfs/etc/rc.sysinit
     sed -i 's|\[ "$PROMPT" != no \] && plymouth|[ "$PROMPT" != no ] \&\& [ -n "$PLYMOUTH" ] \&\& plymouth|' $container_rootfs/etc/rc.d/rc.sysinit
-    rm -f $container_root/etc/init/plymouth-shutdown.conf
-    rm -f $container_root/etc/init/quit-plymouth.conf
-    rm -f $container_root/etc/init/splash-manager.conf
+    rm -f $container_rootfs/etc/init/plymouth-shutdown.conf
+    rm -f $container_rootfs/etc/init/quit-plymouth.conf
+    rm -f $container_rootfs/etc/init/splash-manager.conf
 
     # setup console and tty[1-4] for login. note that /dev/console and
     # /dev/tty[1-4] will be symlinks to the ptys /dev/lxc/console and
-- 
1.7.1





More information about the lxc-devel mailing list