blob: e1d4d3a0434a00d59fa31ff0420ee49e05b9a795 (
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
69
70
71
72
73
74
75
|
<html>
<link rel="stylesheet" type="text/css" href="style.css">
<title>boot ninit</title>
<body>
<div class="top">
<ul class="nav">
<li><a href="all.html">All files</a>
</ul>
<h1>Replacing init</h1>
<div class="endtop"></div>
</div>
This file is copy/edit from
<pre>
http://www.fbunet.de/minit.shtml
</pre>
<p>
If you have set up all needed services, you can try to boot your
system with ninit the first time.
<p>
You should _not_ replace <tt>/sbin/init</tt>
with <tt>/sbin/ninit</tt> because if your system doesn't boot correctly,
you probably won't be able to change back to init.
<p>
That's why you
should create an own entry in
<tt>/etc/lilo.conf</tt> (or <tt>/etc/grub.conf</tt>) that
is identical with your standard entry except one point: You pass
<tt>init=/sbin/ninit</tt> to the kernel.
My <tt>/etc/lilo.conf</tt> looks like:
<pre>
prompt
timeout=50
default=ninit
boot=/dev/hda
map=/boot/map
lba32
compact
image=/boot/vmlinuz-2.4.17
label=linux
read-only
root=/dev/hda2
image=/boot/vmlinuz-2.4.17
label=ninit
read-only
root=/dev/hda2
append="init=/sbin/ninit"
</pre>
After that exec <tt>/sbin/lilo</tt> and reboot the box.
<p>
The same for grub:
</p>
<pre>
default=0
timeout=10
title Linux (2.4.17)
root (hd1,0)
kernel /vmlinuz-2.4.17 ro root=/dev/hda2
title Linux (ninit) (2.4.17)
root (hd1,0)
kernel /vmlinuz-2.4.17 ro root=/dev/hda2 init=/sbin/ninit
</pre>
I don't use grub. Don't ask me quetions about grub!
</body>
</html>
|