Using debian image on Rock 3A, unable to force fsck on boot

The Rock3A sometimes will fail to boot (boot loop) which is caused by some corruption in the filesystem that can be fixed by running fsck on the sd card using another PC.
However, can we somehow set the settings so that it will force fsck on boot? I have tried setting the max mount count using tune2fs to 3 but i don’t think it is actually running fsck on boot, as it will still fail to boot sometimes and need to run fsck externally.
What’s the proper way to make it run fsck on boot if the system is unmounted uncleanly?

Is fstab option for fsck not working?

Fixed by adding kernel boot parameter.