Wind River Support Network


LIN6-9071 : ENABLE_ROOTFS_FSCK broken in /etc/default/rcS

Created: Dec 15, 2014    Updated: Dec 3, 2018
Resolved Date: Jan 30, 2015
Found In Version:
Fix Version:,
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace


Set ENABLE_ROOTFS_FSCK=yes in /etc/default/rcS and reboot: check-disk fails.
My customer is seeing the problem on a real target, I have reproduced on QEMU and a real target.


2 steps:
- manually add the util-linux-fsck package
- modify /etc/fstab, from
    rootfs / auto defaults 1 1
    /dev/sdb2 / auto defaults 1 1
    LABEL=wr_usb_boot / auto defaults 1 1
This second step is due to the fact that fsck is confused by this first field. To translate the '/' argument into a partition, it really needs this value to be correctly set.

Steps to Reproduce

$ /.../lx6/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc_core+debug --enable-checkout-all-layers=yes --enable-reconfig --enable-rm-oldimgs=yes --with-template=feature/initramfs,feature/kexec,feature/kdump --with-rcpl-version=0013
$ make
$ make start-target

On the target, modify /etc/default/rcS to fsck root on boot:
and reboot. You should get the following error:

INIT: version 2.88 booting
Starting udev
udevd[82]: starting version 182
/etc/rcS.d/ line 105: fsck: command not found

fsck failed.  Please repair manually and reboot.  Please note
that the root filesystem is currently mounted read-only.  To
remount it read-write:

   # mount -n -o remount,rw /

CONTROL-D will exit from this shell and REBOOT the system.

Other Downloads

Live chat