]> git.ipfire.org Git - thirdparty/dracut.git/commit
add default values in fstab_lines
authorDave Young <dyoung@redhat.com>
Thu, 27 Feb 2014 02:44:23 +0000 (10:44 +0800)
committerHarald Hoyer <harald@redhat.com>
Fri, 28 Feb 2014 11:10:47 +0000 (12:10 +0100)
commit5f6a495bf43b5679ec21b2c470435dd9d1f50740
tree23c7350d7a294ef98c31897a723047085d1093c3
parent1f680ccc9b3965f2f6cb87e54b5d206a7fe61c97
add default values in fstab_lines

It's useful for passing a full fstab line including like fs_passno so fsck
can take effect.

Previously it's assumed that there's no fs_freq and fs_passno in fstab lines
so original code just append "0 0" at the end of each fstab lines.

Improve this issue by assign default value in case they are not passed in.
Three field are handled here:
fs_mntops: default to "defaults"
fs_freq: default to "0"
fs_passno: default to "2"

Signed-off-by: Dave Young <dyoung@redhat.com>
dracut.8.asc
dracut.sh