From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] util-linux: optionally install sulogin
Date: Tue, 10 Mar 2020 17:02:11 +0100 [thread overview]
Message-ID: <20200310160211.GB1293144@lenoch> (raw)
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
rules/util-linux-ng.in | 11 +++++++++++
rules/util-linux-ng.make | 5 ++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index 1e59c0787..a9735e13c 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -483,4 +483,15 @@ comment "BusyBox' login is selected!"
comment "Shadow package is selected!"
depends on SHADOW
+config UTIL_LINUX_NG_SULOGIN
+ bool
+ depends on !BUSYBOX_SULOGIN || ALLYES
+ prompt "sulogin"
+ help
+ sulogin is invoked by init when the system goes into
+ single-user mode.
+
+comment "BusyBox' sulogin is selected!"
+ depends on BUSYBOX_SULOGIN
+
endif
diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index 81fd9c66d..88abca85f 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -119,7 +119,7 @@ UTIL_LINUX_NG_CONF_OPT := \
--disable-login-chown-vcs \
--disable-login-stat-mail \
--disable-nologin \
- --disable-sulogin \
+ --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_SULOGIN)-sulogin \
--disable-su \
--disable-runuser \
--disable-ul \
@@ -321,6 +321,9 @@ endif
ifdef PTXCONF_UTIL_LINUX_NG_LOGIN
@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/login)
endif
+ifdef PTXCONF_UTIL_LINUX_NG_SULOGIN
+ @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/sbin/sulogin)
+endif
@$(call install_finish, util-linux-ng)
--
2.25.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2020-03-10 16:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-10 16:02 Ladislav Michl [this message]
2020-03-27 9:52 ` [ptxdist] " 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=20200310160211.GB1293144@lenoch \
--to=ladis@linux-mips.org \
--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