From: Bastian Stender <bst@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bastian Stender <bst@pengutronix.de>
Subject: [ptxdist] [PATCH] util-linux-ng: make nsenter configurable
Date: Mon, 6 Mar 2017 12:42:18 +0100 [thread overview]
Message-ID: <20170306114218.1684-1-bst@pengutronix.de> (raw)
nsenter is useful to enter a namespace of a process.
Signed-off-by: Bastian Stender <bst@pengutronix.de>
---
rules/util-linux-ng.in | 6 ++++++
rules/util-linux-ng.make | 5 ++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index 1478a2ff4..dafe3d835 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -86,6 +86,12 @@ config UTIL_LINUX_NG_DMESG
comment "BusyBox' dmesg is selected!"
depends on BUSYBOX_DMESG
+config UTIL_LINUX_NG_NSENTER
+ bool
+ prompt "nsenter"
+ help
+ The nsenter utility
+
config UTIL_LINUX_NG_MOUNTPOINT
bool
select UTIL_LINUX_NG_LIBMOUNT
diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index 49184a9b0..1682c2188 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -76,7 +76,7 @@ UTIL_LINUX_NG_CONF_OPT := \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_MOUNTPOINT)-mountpoint \
--disable-fallocate \
--disable-unshare \
- --disable-nsenter \
+ --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_NSENTER)-nsenter \
--disable-setpriv \
--disable-eject \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_AGETTY)-agetty \
@@ -193,6 +193,9 @@ endif
ifdef PTXCONF_UTIL_LINUX_NG_MOUNTPOINT
@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /bin/mountpoint)
endif
+ifdef PTXCONF_UTIL_LINUX_NG_NSENTER
+ @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/nsenter)
+endif
ifdef PTXCONF_UTIL_LINUX_NG_ADDPART
@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/sbin/addpart)
endif
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2017-03-06 11:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-06 11:42 Bastian Stender [this message]
2017-03-10 9:46 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170306114218.1684-1-bst@pengutronix.de \
--to=bst@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox