bcb835b042
Update inittabs (skeleton/busybox & sysvinit) to remove the trailing REMOUNT_ROOTFS_RW comment used as magic string in system/system.mk to enable/disable remounting the root filesystem rw or not since it affects sysvinit in doing so properly as reported in bug #7442. Instead update the sed expressions to match clean non-commented strings by searching for "-o remount,rw /" and checking that's the end of the line as well to avoid affecting possibly other remounts that a user can have in a custom inittab. Long-term the startup block of inittab should just move to a S00sysinit script or similar so that rcS can pick it up directly. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
# /etc/inittab
|
|
#
|
|
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
|
|
#
|
|
# Note: BusyBox init doesn't support runlevels. The runlevels field is
|
|
# completely ignored by BusyBox init. If you want runlevels, use
|
|
# sysvinit.
|
|
#
|
|
# Format for each entry: <id>:<runlevels>:<action>:<process>
|
|
#
|
|
# id == tty to run on, or empty for /dev/console
|
|
# runlevels == ignored
|
|
# action == one of sysinit, respawn, askfirst, wait, and once
|
|
# process == program to run
|
|
|
|
# Startup the system
|
|
null::sysinit:/bin/mount -t proc proc /proc
|
|
null::sysinit:/bin/mount -o remount,rw /
|
|
null::sysinit:/bin/mkdir -p /dev/pts
|
|
null::sysinit:/bin/mkdir -p /dev/shm
|
|
null::sysinit:/bin/mount -a
|
|
null::sysinit:/bin/hostname -F /etc/hostname
|
|
# now run any rc scripts
|
|
::sysinit:/etc/init.d/rcS
|
|
|
|
# Put a getty on the serial port
|
|
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
|
|
|
|
# Stuff to do for the 3-finger salute
|
|
::ctrlaltdel:/sbin/reboot
|
|
|
|
# Stuff to do before rebooting
|
|
null::shutdown:/etc/init.d/rcK
|
|
null::shutdown:/bin/umount -a -r
|
|
null::shutdown:/sbin/swapoff -a
|
|
|