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
to
/dev/sdb2 / auto defaults 1 1
or
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.
$ /.../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: ENABLE_ROOTFS_FSCK=yes and reboot. You should get the following error: ... INIT: version 2.88 booting Starting udev udevd[82]: starting version 182 /etc/rcS.d/S06checkroot.sh: 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.