From ab2abe9cbebf49a1e4e256485423deb4b7e692c467a4d9c737951b1686733a61 Mon Sep 17 00:00:00 2001 From: Michael Chang Date: Mon, 11 Dec 2017 04:47:09 +0000 Subject: [PATCH] Accepting request 555192 from home:michael-chang:branches:Base:System - Filter out autofs and securityfs from /proc/self/mountinfo to speed up nfsroot test in large number of autofs mounts (bsc#1069094) * modified grub2-pass-corret-root-for-nfsroot.patch OBS-URL: https://build.opensuse.org/request/show/555192 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=286 --- grub2-pass-corret-root-for-nfsroot.patch | 37 +++++++++++++----------- grub2.changes | 7 +++++ 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/grub2-pass-corret-root-for-nfsroot.patch b/grub2-pass-corret-root-for-nfsroot.patch index 6e6447b..fd893c6 100644 --- a/grub2-pass-corret-root-for-nfsroot.patch +++ b/grub2-pass-corret-root-for-nfsroot.patch @@ -3,7 +3,7 @@ From: Michael Chang Date: Thu, 30 Aug 2012 15:43:17 +0800 Subject: [PATCH] Pass corret root= for nfsroot -References: bnc#774548 +References: bnc#774548, bsc#1069094 Patch-Mainline: no Fix / is mounted on nfs. The fix is to pass kernel parameters @@ -11,15 +11,18 @@ with correct root= for nfs. However since grub2 doesn't support nfs file system module, the /boot on nfs is not possible and grub2-probe not work in probing nfs mounted path. The fix is merely on the script level and not use grub2-probe for above reasons. + +v2: Filter out autofs and securityfs from /proc/self/mountinfo (bsc#1069094) + --- util/grub-mkconfig.in | 37 ++++++++++++++++++++++++++++++------- 1 files changed, 30 insertions(+), 7 deletions(-) -Index: grub-2.02~beta2/util/grub-mkconfig.in +Index: grub-2.02/util/grub-mkconfig.in =================================================================== ---- grub-2.02~beta2.orig/util/grub-mkconfig.in -+++ grub-2.02~beta2/util/grub-mkconfig.in -@@ -128,22 +128,47 @@ else +--- grub-2.02.orig/util/grub-mkconfig.in ++++ grub-2.02/util/grub-mkconfig.in +@@ -131,22 +131,47 @@ else exit 1 fi @@ -47,9 +50,9 @@ Index: grub-2.02~beta2/util/grub-mkconfig.in + return + fi + done -+}