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>
26 lines
707 B
Plaintext
26 lines
707 B
Plaintext
# /etc/inittab
|
|
#
|
|
# This inittab is a basic inittab sample for sysvinit, which mimics
|
|
# Buildroot's default inittab for BusyBox.
|
|
id:1:initdefault:
|
|
|
|
proc::sysinit:/bin/mount -t proc proc /proc
|
|
rwmo::sysinit:/bin/mount -o remount,rw /
|
|
dpts::sysinit:/bin/mkdir -p /dev/pts
|
|
dshm::sysinit:/bin/mkdir -p /dev/shm
|
|
moun::sysinit:/bin/mount -a
|
|
host::sysinit:/bin/hostname -F /etc/hostname
|
|
init::sysinit:/etc/init.d/rcS
|
|
|
|
1:1:respawn:/sbin/getty 38400 tty1
|
|
2:1:respawn:/sbin/getty 38400 tty2
|
|
|
|
# S0:1:respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
|
|
|
|
# Stuff to do for the 3-finger salute
|
|
rebo::ctrlaltdel:/sbin/reboot
|
|
|
|
# Stuff to do before rebooting
|
|
umou:6:wait:/bin/umount -a -r
|
|
swap:6:wait:/sbin/swapoff -a
|