aboutsummaryrefslogtreecommitdiff
path: root/docs/wiki/init/switching-to-sinit.html
blob: 775e01cbcf9bff5593e56af3af3edcea6348782f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE HTML>
<html lan="en">
<head>
<title>Switching to Sinit | Carbs Linux</title>
<link rel="stylesheet" href="/assets/style.css">
<meta charset="utf-8">
<meta name="Description" content="Carbs Linux - a simple busybox linux distribution">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<p class=header><strong>Carbs Linux - a simple busybox linux distribution</strong></p>
<div class="header"><nav>
<a href='/'>index</a>
<a href='https://github.com/CarbsLinux'>github</a>
<a href='//dl.carbslinux.org'>downloads</a>
<a href='/blog'>blog</a>
<a href='/wiki'>wiki</a>
<a href='/wiki/install.html'>installation</a>
</nav></div><div class="border"></div>
<h1>Switching to Sinit</h1>

<p>Carbs Linux runs <code>busybox-init</code> by default. You can switch to
anything else you desire, but only busybox-init and sinit are
officially supported. Switching to sinit is extremely easy, you
can be up and running within minutes. The only &ldquo;hard&rdquo; requirement
is an environment you will be chrooting in. So, let&rsquo;s begin!</p>

<h2>Preparing your environment</h2>

<p>From your other environment, download the kiss-chroot utility
and make it executable.</p>

<pre><code>$ wget https://dl.getkiss.org/kiss-chroot
$ chmod +x kiss-chroot

# From your environment start the chroot
$ kiss-chroot /mnt
</code></pre>

<h2>Removing busybox-init</h2>

<p>Now that we are in chroot environment, let&rsquo;s remove busybox-init.</p>

<pre><code>$ kiss r busybox-init
</code></pre>

<h2>Installing and configuring sinit</h2>

<p>Build and install sinit</p>

<pre><code>$ kiss b sinit
$ kiss i sinit
</code></pre>

<p>Open up your <code>/etc/init/rc.conf</code> now and uncomment
the variables regarding SINIT. You are ready now.</p>

<p>If you edited your inittab, make sure you reflect your changes
on the <code>/etc/init/sinit-launch-services.boot</code> file.</p>

<h2>Finishing up</h2>

<p>If all of the above is done, simply exit the chroot and reboot.
Sinit should be functioning without any issues.</p>
<a href="/wiki/init/switching-to-sinit.txt">View Page Source</a><div class=border></div>
<p class=footer>Linux® is a registered trademark of Linus Torvalds</p>
<p class=footer>Copyright © 2019-2020 Cem Keylan</p>
</body>
</html>