Holger had the idea to add to molly-guard a check that would require
the sysadmin to manually ack a reboot if fsck would be expected to
run. I like it.
Instead of parsing df -t output, invoking tune2fs -l and doing
a whole bunch of grep magic, I wonder if there's a smarter way to
find out if fsck would do something if it were to run now.
There is
fsck -A -t ext2,ext3,ext4,… ...
but I could not find out how to ask it the question I want answered,
which is: "hey, fsck, if you were to run right now on -All
filesystems of -type as listed, would you want to do a routine
check?"
Do you know?
Cheers,