1 |
Marc Blumentritt schrieb: |
2 |
> After adding some default /dev/ entries (especially console!) I managed |
3 |
> to boot into my system, but something went wild. To make a long story |
4 |
> short, if you want to mount into initramfs, you have to set correct |
5 |
> values for rootfs in fstab! In my case it looks like this: |
6 |
> |
7 |
> # <fs> <mountpoint> <type> <opts> <dump/pass> |
8 |
> / / tmpfs noauto,noatime 0 0 |
9 |
> |
10 |
> Without noauto /etc/init.d/localmount will try to "remount" rootfs, |
11 |
> because it runs "mount -a". This results somehow in broken links, if |
12 |
> they point to a target, which has to be reached over "/", for example: |
13 |
> in /sbin is getty, which points to ../bin/busybox . To reach busybox, |
14 |
> you have to go over "/", which does not work with the broken remount of |
15 |
> rootfs! This breaks also the whole runlevel stuff, because files frim |
16 |
> /lib/.. try to use /etc/init.d/functions.sh . |
17 |
|
18 |
OK, please forget this stupid "broken remount" explanation. I woke up at |
19 |
5 o'clock this morning and realized, that the entry without noauto |
20 |
results in some kind of "double mount" of "/". So every time a path |
21 |
starts with "/" or a link reaches over "/", you run into the mounted |
22 |
tmpfs and not in rootfs! Or at least I think so... |
23 |
|
24 |
|
25 |
I'm also considering now init from busybox, after reading the |
26 |
configuration for the fourth time. I have changed the sysvinit inittab |
27 |
from gentoo to be conform with bb init (see. below). Does this look alright? |
28 |
|
29 |
Regards, |
30 |
|
31 |
Marc |
32 |
|
33 |
|
34 |
|
35 |
# Default runlevel. |
36 |
#id:3:initdefault: |
37 |
|
38 |
# System initialization, mount local filesystems, etc. |
39 |
#si::sysinit:/sbin/rc sysinit |
40 |
::sysinit:/sbin/rc sysinit |
41 |
|
42 |
# Further system initialization, brings up the boot runlevel. |
43 |
#rc::bootwait:/sbin/rc boot |
44 |
::wait:/sbin/rc boot |
45 |
|
46 |
#l0:0:wait:/sbin/rc shutdown |
47 |
#l1:S1:wait:/sbin/rc single |
48 |
#l2:2:wait:/sbin/rc nonetwork |
49 |
#l3:3:wait:/sbin/rc default |
50 |
::wait:/sbin/rc default |
51 |
#l4:4:wait:/sbin/rc default |
52 |
#l5:5:wait:/sbin/rc default |
53 |
#l6:6:wait:/sbin/rc reboot |
54 |
::shutdown:/sbin/rc reboot |
55 |
#z6:6:respawn:/sbin/sulogin |
56 |
|
57 |
# Used by /etc/init.d/xdm to control DM startup. |
58 |
# Read the comments in /etc/init.d/xdm for more |
59 |
# info. Do NOT remove, as this will start nothing |
60 |
# extra at boot if /etc/init.d/xdm is not added |
61 |
# to the "default" runlevel. |
62 |
#x:a:once:/etc/X11/startDM.sh |
63 |
::once:/etc/X11/startDM.sh |
64 |
|
65 |
# TERMINALS |
66 |
#c1:12345:respawn:/sbin/getty 38400 tty1 linux |
67 |
#c2:2345:respawn:/sbin/getty 38400 tty2 linux |
68 |
#c3:2345:respawn:/sbin/getty 38400 tty3 linux |
69 |
#c4:2345:respawn:/sbin/getty 38400 tty4 linux |
70 |
#c5:2345:respawn:/sbin/getty 38400 tty5 linux |
71 |
#c6:2345:respawn:/sbin/getty 38400 tty6 linux |
72 |
tty1::respawn:/sbin/getty 38400 tty1 |
73 |
tty2::respawn:/sbin/getty 38400 tty2 |
74 |
tty3::respawn:/sbin/getty 38400 tty3 |
75 |
tty4::respawn:/sbin/getty 38400 tty4 |
76 |
tty5::respawn:/sbin/getty 38400 tty5 |
77 |
tty6::respawn:/sbin/getty 38400 tty6 |
78 |
|
79 |
# SERIAL CONSOLES |
80 |
#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100 |
81 |
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100 |
82 |
|
83 |
# What to do at the "Three Finger Salute". |
84 |
#ca:12345:ctrlaltdel:/sbin/shutdown -r now |
85 |
::ctrlaltdel:/sbin/shutdown -r now |
86 |
# or the next line, because shutdown off bb |
87 |
# works different then shutdown of sysvinit? |
88 |
#::ctrlaltdel:/sbin/rc reboot |
89 |
|
90 |
-- |
91 |
gentoo-embedded@g.o mailing list |