]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Update lxc-oracle.in
author有张纸 <fanyeren@gmail.com>
Thu, 11 Jun 2015 04:50:50 +0000 (12:50 +0800)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 28 Aug 2015 22:02:16 +0000 (18:02 -0400)
templates/lxc-oracle.in

index daaa63d31291946db81c3cff06881cb82afa2782..57a0d25f2731e9093a858efc2798f781cdc83e52 100644 (file)
@@ -319,8 +319,8 @@ EOF
     fi
 
     if [ $container_release_major = "6" ]; then
-        sed -i 's|mount -n -o remount /dev/shm >/dev/null 2>&1$|mkdir -p /dev/shm && mount -t tmpfs tmpfs /dev/shm # LXC|' $container_rootfs/etc/rc.sysinit
-        sed -i 's|mount -n -o remount /dev/shm >/dev/null 2>&1$|mkdir -p /dev/shm && mount -t tmpfs tmpfs /dev/shm # LXC|' $container_rootfs/etc/rc.d/rc.sysinit
+        sed -i 's|mount -n -o remount /dev/shm >/dev/null 2>&1$|mkdir -p /dev/shm \&\& mount -t tmpfs tmpfs /dev/shm # LXC|' $container_rootfs/etc/rc.sysinit
+        sed -i 's|mount -n -o remount /dev/shm >/dev/null 2>&1$|mkdir -p /dev/shm \&\& mount -t tmpfs tmpfs /dev/shm # LXC|' $container_rootfs/etc/rc.d/rc.sysinit
     fi
 
     # setup console and tty[1-4] for login. note that /dev/console and