http://linux-vserver.org/api.php?action=feedcontributions&user=213.80.115.21&feedformat=atomLinux-VServer - User contributions [en]2024-03-29T02:36:10ZUser contributionsMediaWiki 1.20.2http://linux-vserver.org/Howto_make_BSD-style_init_SysV-compatibleHowto make BSD-style init SysV-compatible2008-10-11T19:28:04Z<p>213.80.115.21: </p>
<hr />
<div>To make archlinux boot nicely, some modifications to the init scripts are needed.<br /><br />
First create a /etc/init.d dir and add a new file /etc/init.d/rc with content:<br /><br />
<br />
if [ $1 -eq 3 ]; then<br />
echo "entering runlevel 3:multi";<br />
/etc/rc.multi<br />
fi<br />
if [ $1 -eq 6 ]; then<br />
echo "entering runlevel 6:reboot";<br />
/etc/rc.shutdown<br />
fi<br />
if [ $1 -eq 0 ]; then<br />
echo "entering runlevel 0: shutdown";<br />
/etc/rc.shutdown<br />
fi<br />
if [ $1 -eq 4 ]; then<br />
echo "entering runlevel 4"; <br />
fi<br />
if [ $1 -eq 5 ]; then<br />
echo "entering runlevel 5";<br />
fi<br />
if [ $1 -eq 1 ]; then<br />
echo "entering runlevel 1:single";<br />
/etc/rc.single<br />
fi<br />
if [ $1 -eq 2 ]; then<br />
echo "entering runlevel 2:multi";<br />
/etc/rc.multi<br />
fi<br />
<br />
This script starts the right init-scripts for the runlevels. you now should be able to boot up your archlinux guest system. but there is some more work to get around all these warning and error messages on bootup.<br /><br />
You need to remove all that has to do with kernel, driver and networking. Edit the /etc/rc.conf file and remove networking from DAEMONS.<br /><br />
<br />
to make syslog-ng work edit /etc/syslog-ng.conf and comment out the line: <b>pipe("/proc/kmsg")</b><br />
<br />
Edit /etc/rc.shutdown and comment out all below and including <b>stat_busy "Saving Random Seed"</b> to <b># Power off or reboot</b><br />
<br /><br /><br />
Have fun with your archlinux guest and feel free to improve the rc script :)</div>213.80.115.21