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