X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=distrib%2Fgentoo%2Finitpost;h=069727b8eaef3fb17ff0aa404215a4d137603004;hb=b2f9fcec28f323a2114d3241a1c7f3294a12940b;hp=a61ab1b9773b991f7c72fb0bde04e33b8ad725ef;hpb=3d2cab9a6a00cf148c1cd586ea9bf6f75df62673;p=util-vserver.git diff --git a/distrib/gentoo/initpost b/distrib/gentoo/initpost index a61ab1b..069727b 100755 --- a/distrib/gentoo/initpost +++ b/distrib/gentoo/initpost @@ -63,6 +63,11 @@ test -e "$cfgdir"/apps/init/style && initstyle=$(<"$cfgdir"/apps/init/style) if test "$initstyle" == "gentoo"; then echo ">>> Installing special init-style magic ... " + # force /lib/rc/sh even if we don't have it in older stages + $_CHROOT_SH mkdir /lib 2>/dev/null || : + $_CHROOT_SH mkdir /lib/rc 2>/dev/null || : + $_CHROOT_SH mkdir /lib/rc/sh 2>/dev/null || : + $_CAT "$__DISTRIBDIR"/gentoo/init-vserver.sh | \ $_CHROOT_SH truncate /lib/rc/sh/init-vserver.sh $_CHROOT_SH chmod 0755 /lib/rc/sh/init-vserver.sh