$_CHROOT_SH truncate /lib/rcscripts/sh/init-vserver.sh
$_CHROOT_SH chmod 0755 /lib/rcscripts/sh/init-vserver.sh
+ $_CAT "$__DISTRIBDIR"/gentoo/reboot.sh | \
+ $_CHROOT_SH truncate /etc/init.d/reboot.sh
+ $_CHROOT_SH chmod 0755 /etc/init.d/reboot.sh
+
+ $_CAT "$__DISTRIBDIR"/gentoo/shutdown.sh | \
+ $_CHROOT_SH truncate /etc/init.d/shutdown.sh
+ $_CHROOT_SH chmod 0755 /etc/init.d/shutdown.sh
+
echo "!!!"
- echo "!!! You have to install a service (e.g. syslog-ng) and add it to the"
+ echo "!!! You have to install a service (e.g. syslog/cron) and add it to the"
echo "!!! default runlevel before you start the guest the first time!"
echo "!!! Otherwise the guest will die as soon as it has finished booting."
echo "!!!"
fi
+# prevent dmesg errors/warnings
+echo ">>> Enabling dummy /proc/kmsg"
+echo syslog >> "$1"/ccapabilities
+
+
# initstyle sanity
initstyle=sysv
test -e "$1"/apps/init/style && initstyle=$(<"$1"/apps/init/style)
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# gentoo init style needs this (and nothing else)
+/sbin/reboot -f
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# gentoo init style needs this (and nothing else)
+/sbin/halt -f