X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=distrib%2Fgentoo%2Finitpost;h=f1d622978fdd78ef40fded56f7f2536643849145;hb=be41237a12dad904d92e58373f670113bb730a24;hp=a61ab1b9773b991f7c72fb0bde04e33b8ad725ef;hpb=3d2cab9a6a00cf148c1cd586ea9bf6f75df62673;p=util-vserver.git diff --git a/distrib/gentoo/initpost b/distrib/gentoo/initpost index a61ab1b..f1d6229 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 @@ -110,7 +115,7 @@ fi if $_CHROOT_SH testfile /etc/syslog-ng/syslog-ng.conf; then echo ">>> Fixing syslog-ng.conf ... " chrootsed /etc/syslog-ng/syslog-ng.conf \ - -e 's:pipe("/proc/kmsg"); ::' \ + -e '/proc\/kmsg/d' \ -e 's:\(.*console_all.*\):#\1:g' fi