It now much more closely follows the previous behavior. Are there any specific concerns you have with the code?
I also added a few comments to make it more transparent what is going on.
I don't think the slight differences are harmful in any way:
Besides fsck-ing rootfs (/), also a separate /home is checked (2), as well as any other partition (there are many /sbin/fsck.* available, provided appropriate *{tools,progs,utils} package is installed as it should be). Except ntfs and swap partitions. The former has /bin/ntfsck and ntfsfix which the authors don't recommend, and the latter needs no checking, I suppose.
And the other difference is swap being mounted with defaults instead of sw. But it works the same.
It now much more closely follows the previous behavior. Are there any specific concerns you have with the code?
I also added a few comments to make it more transparent what is going on.
I don't think the slight differences are harmful in any way:
/sbin/fsck.*
available, provided appropriate *{tools,progs,utils} package is installed as it should be). Except ntfs and swap partitions. The former has/bin/ntfsck
andntfsfix
which the authors don't recommend, and the latter needs no checking, I suppose.defaults
instead ofsw
. But it works the same.