Marc Blumentritt schrieb:
> After adding some default /dev/ entries (especially console!) I managed
> to boot into my system, but something went wild. To make a long story
> short, if you want to mount into initramfs, you have to set correct
> values for rootfs in fstab! In my case it looks like this:
> 
> # <fs> <mountpoint> <type> <opts>          <dump/pass>
> /      /            tmpfs  noauto,noatime  0 0
> 
> Without noauto /etc/init.d/localmount will try to "remount" rootfs,
> because it runs "mount -a". This results somehow in broken links, if
> they point to a target, which has to be reached over "/", for example:
> in /sbin is getty, which points to ../bin/busybox . To reach busybox,
> you have to go over "/", which does not work with the broken remount of
> rootfs! This breaks also the whole runlevel stuff, because files frim
> /lib/.. try to use /etc/init.d/functions.sh .

OK, please forget this stupid "broken remount" explanation. I woke up at
5 o'clock this morning and realized, that the entry without noauto
results in some kind of "double mount" of "/". So every time a path
starts with "/" or a link reaches over "/", you run into the mounted
tmpfs and not in rootfs! Or at least I think so...


I'm also considering now init from busybox, after reading the
configuration for the fourth time. I have changed the sysvinit inittab
from gentoo to be conform with bb init (see. below). Does this look alright?

Regards,

Marc



# Default runlevel.
#id:3:initdefault:

# System initialization, mount local filesystems, etc.
#si::sysinit:/sbin/rc sysinit
::sysinit:/sbin/rc sysinit

# Further system initialization, brings up the boot runlevel.
#rc::bootwait:/sbin/rc boot
::wait:/sbin/rc boot

#l0:0:wait:/sbin/rc shutdown
#l1:S1:wait:/sbin/rc single
#l2:2:wait:/sbin/rc nonetwork
#l3:3:wait:/sbin/rc default
::wait:/sbin/rc default
#l4:4:wait:/sbin/rc default
#l5:5:wait:/sbin/rc default
#l6:6:wait:/sbin/rc reboot
::shutdown:/sbin/rc reboot
#z6:6:respawn:/sbin/sulogin

# Used by /etc/init.d/xdm to control DM startup.
# Read the comments in /etc/init.d/xdm for more
# info. Do NOT remove, as this will start nothing
# extra at boot if /etc/init.d/xdm is not added
# to the "default" runlevel.
#x:a:once:/etc/X11/startDM.sh
::once:/etc/X11/startDM.sh

# TERMINALS
#c1:12345:respawn:/sbin/getty 38400 tty1 linux
#c2:2345:respawn:/sbin/getty 38400 tty2 linux
#c3:2345:respawn:/sbin/getty 38400 tty3 linux
#c4:2345:respawn:/sbin/getty 38400 tty4 linux
#c5:2345:respawn:/sbin/getty 38400 tty5 linux
#c6:2345:respawn:/sbin/getty 38400 tty6 linux
tty1::respawn:/sbin/getty 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3
tty4::respawn:/sbin/getty 38400 tty4
tty5::respawn:/sbin/getty 38400 tty5
tty6::respawn:/sbin/getty 38400 tty6

# SERIAL CONSOLES
#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100

# What to do at the "Three Finger Salute".
#ca:12345:ctrlaltdel:/sbin/shutdown -r now
::ctrlaltdel:/sbin/shutdown -r now
# or the next line, because shutdown off bb
# works different then shutdown of sysvinit?
#::ctrlaltdel:/sbin/rc reboot

-- 
[EMAIL PROTECTED] mailing list

Reply via email to