Blame SOURCES/0256-Change-the-fs_passno-of-nfs-to-0.patch

712866
From a218f3253c3c39c58d60d1a6696facf88f3e4be0 Mon Sep 17 00:00:00 2001
712866
From: Chao Fan <cfan@redhat.com>
712866
Date: Wed, 20 May 2015 18:07:14 +0800
712866
Subject: [PATCH] Change the fs_passno of nfs to 0
712866
712866
There is a bug that kdump-initrd contains entry requesting nfs dump
712866
filesystem to get filesystemchecked. And there is an erro message said
712866
that nfs need be checked. But there's no fsck for nfs utility, e.g
712866
fsck.nfs like other file system. Whatever fs_passno 0 or 2 are passed,
712866
no fsck is executed at all for nfs mount.But in dracut, set it to be 2
712866
always, so the erro message appear and it should be set to 0.
712866
712866
In the fstab,the sixth variable fs_passno stands for that the device need
712866
checked or not,and dracut set it to "2".To fix this issue, it should
712866
be "0" when the device is nfs.The third variable stands for the type of
712866
the filesystem and we can use it to judge whether the device is nfs.
712866
So when the third variable of fstab contains "nfs", the sixth variable
712866
fs_passno should be set to "0".
712866
712866
Signed-off-by: Chao Fan <cfan@redhat.com>
712866
(cherry picked from commit 3586a7aa770016aeadb23257c27916fd009bec42)
712866
---
712866
 dracut.sh | 1 +
712866
 1 file changed, 1 insertion(+)
712866
712866
diff --git a/dracut.sh b/dracut.sh
5c6c2a
index 0e600220..cc22a14d 100755
712866
--- a/dracut.sh
712866
+++ b/dracut.sh
712866
@@ -1348,6 +1348,7 @@ if [[ $kernel_only != yes ]]; then
712866
         [ -z "${line[3]}" ] && line[3]="defaults"
712866
         [ -z "${line[4]}" ] && line[4]="0"
712866
         [ -z "${line[5]}" ] && line[5]="2"
712866
+        strstr "${line[2]}" "nfs" && line[5]="0"
712866
         echo "${line[@]}" >> "${initdir}/etc/fstab"
712866
     done
712866