[arch-projects] [initscripts][PATCH] remove /run/nologin before leaving rc.multi

Tom Gundersen teg at jklm.no
Wed Jul 4 03:32:38 EDT 2012


On Jul 4, 2012 4:35 AM, "Dave Reisner" <dreisner at archlinux.org> wrote:
>
> systemd-186 writes this file when running systemd-tmpfiles, but
> initscripts never removes it. This disallows all non-root logins.
>
> Reported-by: Dan McGee <dan at archlinux.org>
> Signed-off-by: Dave Reisner <dreisner at archlinux.org>
> ---
> Tom: I've applied this to initscripts and released a new pkg just to avoid
> any pain that this would otherwise undoubtedly cause. There's a few
solutions
> to this problem but I thought that this would be the most straightforward.
> Feel free to disagree and we can work out an alternative.
>
>  rc.multi | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/rc.multi b/rc.multi
> index daf2372..7d4acaa 100755
> --- a/rc.multi
> +++ b/rc.multi
> @@ -31,4 +31,6 @@ run_hook multi_end
>
>  bootlogd_stop
>
> +rm -f /run/nologin
> +
>  # vim: set ts=2 sw=2 noet:
> --
> 1.7.11.1
>

Sounds good.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20120704/4ffa925c/attachment-0001.html>


More information about the arch-projects mailing list