[lxc-devel] [PATCH 2/2] oracle: Fix /dev/shm

Serge Hallyn serge.hallyn at ubuntu.com
Thu Jan 29 22:46:37 UTC 2015


Quoting Stéphane Graber (stgraber at ubuntu.com):
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

though do drop the .swp please :)

> ---
>  templates/.lxc-ubuntu.in.swp | Bin 0 -> 16384 bytes
>  templates/lxc-oracle.in      |   8 ++++----
>  2 files changed, 4 insertions(+), 4 deletions(-)
>  create mode 100644 templates/.lxc-ubuntu.in.swp
> 
> diff --git a/templates/.lxc-ubuntu.in.swp b/templates/.lxc-ubuntu.in.swp
> new file mode 100644
> index 0000000000000000000000000000000000000000..20fcc390292a4bbc7b45c5d905f0ce6a6d0a7e9d
> GIT binary patch
> literal 16384
> zcmeI3TWlQF8OMj-xD{H_hr&bAm-RMlC!W1Hi9vQY#27nqWyi_dCb0-OvomLR2hYw-
> z=Hj(U(n?idP#-|Os1H?9OX&q at RUSZ4T7g8RR;3b!6eOsGRH>D!_NA&oRN~tIcjmI2
> zwH at H0s;bUPKkx3je&;*qeCIpgj_c)HXXfaJ;$8)>Pb<pLzVqxN9sa8F+s`VBA2dC!
> zE<Db<*h|;^z|?H*Vr4k*i%EkeLkqN$?iiwEt?QCNv|URJgwNm9upZh$STybTYck8v
> zG>~cF18d+aWzR^Z%*6+CJLoglEPddbS;0&LnFcZqWE#jckZB;(K&F9A1DOW?_cai>
> zmnvVvFg_9wr4zqj()a#e{7UlI`|{t7^ZhveAAR}n#Q9&2)9Y~uNk4DL`FfoHm%jYB
> z`r1Df3!K#dXk5>Y-=FNukCU^vOaqw)G7V%J$TW~?Ak#pmflLFL1~Ls~8pt&8f2je@
> zi0=Mx@<kfI|0nnR*FU8wuYrGp$H8O31{PQaD!3B- at oGhR8GH*YgX_Q_u2Piq;2tms
> zE(0%pQc+$6_ktPluPYVh4e%Uz5_}sR2UmcnuTYdnz=Plc at O{t$hrl$r2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> 
> literal 0
> HcmV?d00001
> 
> diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in
> index c35ac40..5a6c3de 100644
> --- a/templates/lxc-oracle.in
> +++ b/templates/lxc-oracle.in
> @@ -297,13 +297,13 @@ EOF
>      if [ $container_release_major = "4" -o $container_release_major = "5" ]; then
>          grep -q "mount -t tmpfs tmpfs /dev/shm" $container_rootfs/etc/rc.sysinit
>          if [ $? -eq 1 ]; then
> -            echo "mount -t tmpfs tmpfs /dev/shm" >>$container_rootfs/etc/rc.sysinit
> -            echo "mount -t tmpfs tmpfs /dev/shm" >>$container_rootfs/etc/rc.d/rc.sysinit
> +            echo "mkdir -p /dev/shm && mount -t tmpfs tmpfs /dev/shm" >>$container_rootfs/etc/rc.sysinit
> +            echo "mkdir -p /dev/shm && mount -t tmpfs tmpfs /dev/shm" >>$container_rootfs/etc/rc.d/rc.sysinit
>          fi
>      fi
>      if [ $container_release_major = "6" ]; then
> -        sed -i 's|mount -n -o remount /dev/shm >/dev/null 2>&1$|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$|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
> -- 
> 1.9.1
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list