<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5768&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Switching between init choices]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5768</link>
		<description><![CDATA[The most recent posts in [SOLVED] Switching between init choices.]]></description>
		<lastBuildDate>Sat, 01 Jul 2023 14:34:01 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Switching between init choices]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=42724#p42724</link>
			<description><![CDATA[<p>Could you also just install it from grub?</p><p>- when grub menu comes up at boot press <strong>e</strong><br />- on the boot line (w/vmlinuz) add <strong>init=/bin/sh</strong> to the end<br />- <strong>ctrl-x</strong> will boot to a shell<br />- uninstall/install inits<br />- hard restart</p><p>I&#039;ve done this to get to a shell, but didn&#039;t try the init uninstall/install</p>]]></description>
			<author><![CDATA[dummy@example.com (mweishaar)]]></author>
			<pubDate>Sat, 01 Jul 2023 14:34:01 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=42724#p42724</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Switching between init choices]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=42686#p42686</link>
			<description><![CDATA[<p>Thanks Lorenzo. I thought that <span class="bbc">/lib/runit/runit-init</span> was installed in <strong>runit-init</strong>, but it belongs to <strong>runit</strong>.</p>]]></description>
			<author><![CDATA[dummy@example.com (aitor)]]></author>
			<pubDate>Tue, 27 Jun 2023 21:01:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=42686#p42686</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Switching between init choices]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=42684#p42684</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>It worked on my desktop, too.&#160; The only problem is that I could not reboot afterwards and had to power cycle the machine.</p></div></blockquote></div><p>Next time do the following:</p><p>1. install sysvinit-core (it will remove runit-init package), but don&#039;t remove the runit package (yet);<br />2. tell runit to reboot the system with</p><div class="codebox"><pre><code># /lib/runit/runit-init 6</code></pre></div><p>(see man runit-init for details)</p><p>After you reboot into sysvinit you can safely remove the runit package too</p><p>Lorenzo</p>]]></description>
			<author><![CDATA[dummy@example.com (Lorenzo)]]></author>
			<pubDate>Tue, 27 Jun 2023 19:33:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=42684#p42684</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Switching between init choices]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=42681#p42681</link>
			<description><![CDATA[<p>I don&#039;t recommend you to change the init system from a running system next time. The already running init, whether runit-init or sysvinit, will be removed and the system won&#039;t shutdown properly. For example, it won&#039;t be able to determine the current runlevel. For this reason, I suggest you to use a live system instead.</p><p>From the live session, run the following command to determine the partitions. One sample:</p><div class="codebox"><pre><code>liveuser@devuan:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0 756.3M  1 loop /lib/live/mount/rootfs/filesystem.squashfs
loop1    7:1    0   4.9M  0 loop /dev/metadata/hwdb
sda      8:0    0 465.8G  0 disk 
├─sda1   8:1    0  93.2G  0 part 
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0 368.8G  0 part /mnt
└─sda6   8:6    0   3.7G  0 part 
sdb      8:16   1   7.2G  0 disk 
├─sdb1   8:17   1   877M  0 part /lib/live/mount/medium
└─sdb2   8:18   1   1.4M  0 part 
sr0     11:0    1  1024M  0 rom</code></pre></div><p>In this concrete case <span class="bbc">/dev/sda1</span> is the root partition (/) in the attached internal disk, <span class="bbc">/dev/sda5</span> the home partition and <span class="bbc">/dev/sda6</span> the swap. Mount&#160; the root partition (i.e. the system) in <span class="bbc">/mnt</span> with the command:</p><div class="codebox"><pre><code># mount --rw /dev/sda1 /mnt</code></pre></div><p>bind <strong>/sys</strong>, <strong>/proc</strong> and <strong>/dev</strong> and chroot the mounted system:</p><div class="codebox"><pre><code># mount -o bind /sys /mnt/sys
# mount -t proc proc /mnt/proc
# mount -o bind /dev /mnt/dev
# mount -o bind /dev/pts /mnt/dev/pts
# chroot /mnt</code></pre></div><p>Now you&#039;re in a chroot jail and you&#039;ll be able to use apt within the mounted system. Install <strong>sysvinit-core</strong> and <strong>runit-init</strong> will be removed automatically. In addition, you an also purge other superfluous packages like <strong>runit</strong> and <strong>getty-run</strong>:</p><div class="codebox"><pre><code># apt-get update
# apt-get install sysvinit-core
# dpkg --purge runit getty-run
# apt-get clean</code></pre></div><p>Exit the jail and unmount the partitions:</p><div class="codebox"><pre><code># exit
# umount /mnt/dev/pts
# umount /mnt/dev
# umount /mnt/proc
# umount /mnt/sys
# umount /mnt</code></pre></div><p>Done.</p>]]></description>
			<author><![CDATA[dummy@example.com (aitor)]]></author>
			<pubDate>Tue, 27 Jun 2023 18:26:49 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=42681#p42681</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Switching between init choices]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=42679#p42679</link>
			<description><![CDATA[<p>It worked on my desktop, too.&#160; The only problem is that I could not reboot afterwards and had to power cycle the machine.</p>]]></description>
			<author><![CDATA[dummy@example.com (bigcat)]]></author>
			<pubDate>Tue, 27 Jun 2023 17:38:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=42679#p42679</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Switching between init choices]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=42674#p42674</link>
			<description><![CDATA[<p>Greetings All,</p><p>If I chose runit as a system init during installation, and would like to switch to sysvinit, is it a simple matter of installing sysvinit-core&#160; and sysvinit packages?</p><p>I tested this in a VM and it seemed to work.</p><p>Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (bigcat)]]></author>
			<pubDate>Tue, 27 Jun 2023 13:27:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=42674#p42674</guid>
		</item>
	</channel>
</rss>
