Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4BC25E002A9 for ; Thu, 2 Aug 2012 10:20:34 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 02 Aug 2012 10:19:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,352,1309762800"; d="scan'208";a="174781901" Received: from wrk.jf.intel.com ([10.7.202.146]) by orsmga001.jf.intel.com with ESMTP; 02 Aug 2012 10:19:23 -0700 From: Kevin Strasser To: yocto@yoctoproject.org Date: Thu, 2 Aug 2012 10:20:13 -0700 Message-Id: <1343928013-3514-1-git-send-email-kevin.strasser@linux.intel.com> X-Mailer: git-send-email 1.7.9.5 Subject: [PATCH] webmin: remove nfsd check from exports-lib.pl X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2012 17:20:34 -0000 Webmin expects the userspace version of nsfd and attempts to find its pid when applying a new set of nfs exports. This check fails because baryon is configured to install the kernelspace version. In result the command that is assigned to apply_cmd will never be executed, and the contents of /exports are not successfully exported. Fixes [YOCTO #1719] Signed-off-by: Kevin Strasser --- recipes-extended/webmin/files/exports-lib.pl.patch | 32 ++++++++++++++++++++ recipes-extended/webmin/webmin_1.570.bb | 3 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 recipes-extended/webmin/files/exports-lib.pl.patch diff --git a/recipes-extended/webmin/files/exports-lib.pl.patch b/recipes-extended/webmin/files/exports-lib.pl.patch new file mode 100644 index 0000000..140ae7e --- /dev/null +++ b/recipes-extended/webmin/files/exports-lib.pl.patch @@ -0,0 +1,32 @@ +From 7eba4c98c6953fa6ea76c1620d19524bcfa3a576 Mon Sep 17 00:00:00 2001 +From: Kevin Strasser +Date: Wed, 1 Aug 2012 11:51:26 -0700 +Subject: [PATCH] nfs export: remove nfsd check + +nfsd runs as a kernel process and does not have a pid. This means +that the command assigned to apply_cmd will never be executed when +the user tries to apply changes to nfs exports. + +Upstream-Status: Inappropriate [config] + +Signed-off-by: Kevin Strasser +--- + exports/exports-lib.pl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/exports/exports-lib.pl b/exports/exports-lib.pl +index 22891c0..1c67494 100755 +--- a/exports/exports-lib.pl ++++ b/exports/exports-lib.pl +@@ -273,7 +273,7 @@ return !&has_command("rpc.nfsd") && !&has_command("nfsd") && + sub restart_mountd + { + # Try exportfs -r first +-if ($config{'apply_cmd'} && &find_byname("nfsd") && &find_byname("mountd")) { ++if ($config{'apply_cmd'} && &find_byname("mountd")) { + local $out = &backquote_logged("$config{'apply_cmd'} 2>&1