mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <mol@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] util-linux: optionally install sulogin
Date: Fri, 27 Mar 2020 10:52:11 +0100	[thread overview]
Message-ID: <E1jHlet-0008Qn-MF@dude02.lab.pengutronix.de> (raw)
In-Reply-To: <20200310160211.GB1293144@lenoch>

Thanks, applied.

Michael

[sent from post-receive hook]

On Fri, 27 Mar 2020 10:52:11 +0100, Ladislav Michl <ladis@linux-mips.org> wrote:
> 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)
>  
> 

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2020-03-27  9:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10 16:02 [ptxdist] [PATCH] " Ladislav Michl
2020-03-27  9:52 ` Michael Olbrich [this message]

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=E1jHlet-0008Qn-MF@dude02.lab.pengutronix.de \
    --to=mol@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