Hello all,
Thomas Köhler wrote:
Attached patch will add another feature to this if there is a third -F option: It will get the next commandline option and passes it to fsck as additional options.
Just sending the first patch, I found a bug in this new feature which I fixed using attached patch #2.
After a short discussion on IRC, I came to the conclusion that mrud was right to propose another option for passing additional arguments to fsck, so I changed -F to -X (which cleans up the getopts part at the same time). So this is patch #3.
For example grml-crypt -FFF "-y -T" /dev/ice will pass "-y -T" to the (forced) fsck.
That would now (all 3 patches applied) be grml-crypt -F "-y -T" /dev/ice or grml-crypt -FF "-y -T" /dev/ice to pass "-y -T" to fsck (forced in the second form).
bye, Thomas