Skip to content

Commit

Permalink
added missing fsck call in /etc/inittab and added more direct output …
Browse files Browse the repository at this point in the history
…to tty2
  • Loading branch information
jens-maus committed Sep 28, 2018
1 parent eca66ef commit 1980ea5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
9 changes: 4 additions & 5 deletions buildroot-external/overlay/base/etc/inittab
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,22 @@

# Startup the system
null::sysinit:/bin/mount -t proc proc /proc
#null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
null::sysinit:/bin/mkdir -p /dev/pts
null::sysinit:/bin/mkdir -p /dev/shm
null::sysinit:/bin/mount -a
tty2::sysinit:/sbin/fsck -A -R -p
tty2::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
null::sysinit:/usr/bin/psplash -n &
# now run any rc scripts
::sysinit:/etc/init.d/rcS

# Put a getty on the serial port
# Put a getty on tty2
tty2::askfirst:/sbin/getty -L tty2 0 vt100

# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
::shutdown:/etc/init.d/rcK
null::shutdown:/bin/umount -a -r
tty2::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a

Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ tmpfs /var tmpfs defaults,noatime,size=50%
tmpfs /media tmpfs defaults,noatime 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
LABEL=rootfs /rootfs ext4 defaults,noatime,nodiratime,ro,data=journal 0 0
LABEL=userfs /userfs ext4 defaults,noatime,nodiratime,ro,data=journal 0 0
LABEL=userfs /userfs ext4 defaults,noatime,nodiratime,ro,data=journal,nofail 0 2
LABEL=bootfs /bootfs vfat defaults,ro 0 0
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,22 @@

# Startup the system
null::sysinit:/bin/mount -t proc proc /proc
#null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
null::sysinit:/bin/mkdir -p /dev/pts
null::sysinit:/bin/mkdir -p /dev/shm
null::sysinit:/bin/mount -a
tty2::sysinit:/sbin/fsck -A -R -p
tty2::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
null::sysinit:/usr/bin/psplash -n &
# now run any rc scripts
::sysinit:/etc/init.d/rcS

# Put a getty on the serial port
# Put a getty on tty2
tty2::askfirst:/sbin/getty -L tty2 0 vt100

# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
::shutdown:/etc/init.d/rcK
null::shutdown:/bin/umount -a -r
tty2::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a

0 comments on commit 1980ea5

Please sign in to comment.