Change the fs_passno of nfs to "0"
Set fs_passno, the sixth variable of fstab to "0" when the device is nfs.
In the fstab,the sixth variable fs_passno stands for that the device need check
ed or not,and dracut set it to "2".But if it is nfs,there's no fsck for nfs uti
lity, e.g fsck.nfs like other file system. Whatever fs_passno 0 or 2 are passed
, no fsck is executed at all for nfs mount.So it should be "0" when the device i
s nfs.So when the third variable of fstab contains "nfs", the sixth variable fs_
passno should be set to "0".The third variable stands for the type of the filesy

Signed-off-by: Chao Fan <>
diff --git a/ b/
index ab84221..a7a124c 100755
--- a/
+++ b/
@@ -1517,7 +1517,13 @@ if [[ $kernel_only != yes ]]; then
         [ -z "${line[3]}" ] && line[3]="defaults"
         [ -z "${line[4]}" ] && line[4]="0"
-        [ -z "${line[5]}" ] && line[5]="2"
+        [ -z "${line[5]}" ] && {
+        if strstr "${line[2]}" "nfs";then
+                line[5]="0"
+        else    line[5]="2"
+        fi
+        }
         echo "${line[@]}" >> "${initdir}/etc/fstab"
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to
More majordomo info at

Reply via email to