I am using LEDE 17.01.4 on Raspberry Pi 3B.
To protect against SD card corruption at powerloss, i want to force a filesystem check of the root partition /dev/memblk0p2 which is an ext4 partition as provided by the LEDE image.
I tried all options i could find on the internet, but either they are outdated or not relevant to LEDE:
tune2fs -c 1 /dev/memblk0p2
This sets the partition to be checked on boot; but i get only a message i should check the filesystem.the check is not executed
does nothing aside from creating /forcefsck
appending the cmdline.txt with fsck.mode=force and fsck.repair=yes
not available on LEDE
file not available on LEDE
So can anyone please tell me the proper method to enable fsck at boot in a recent LEDE/OpenWRT?