]> 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>
Wed, 1 Jul 2015 17:46:36 +0000 (13:46 -0400)
templates/lxc-oracle.in

index 5a6c3dede986ba26e747556140e820880915d172..13fad95dbd6e62553a9e4abbb876ac8d7d2658b6 100644 (file)
@@ -302,8 +302,8 @@ EOF
         fi
     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
 
     # there might be other services that are useless but the below set is a good start