I'm automating a process to upgrade my ext3 filesystem to ext4. Following the instructions from here I'm able to successfully migrate my filesystem. I've scripted the vast majority of the work, and it's working pretty nicely.
However, the final step in the migration is running
fsck on the unmounted partition. The issue is that I'm trying to migrate the root partition, which can't be unmounted during normal operations. So to run
fsck, I need to boot into recovery mode, enter the root password, and run
fsck that way.
Is it possible to configure CentOS to automatically run
fsck on boot into recovery?