From: Karel Zak <kzak@redhat.com>
To: Sitsofe Wheeler <sitsofe@gmail.com>
Cc: util-linux@vger.kernel.org
Subject: Re: agetty --reload
Date: Mon, 9 Mar 2015 21:12:59 +0100 [thread overview]
Message-ID: <20150309201259.GC26473@ws.net.home> (raw)
In-Reply-To: <CALjAwxhefTrWEcxo+P4X98N5W12y2U5Jycj=1sjHju4WsA8ORA@mail.gmail.com>
On Mon, Mar 09, 2015 at 02:38:23PM +0000, Sitsofe Wheeler wrote:
> On 9 March 2015 at 11:52, Karel Zak <kzak@redhat.com> wrote:
> > On Sun, Mar 08, 2015 at 09:02:11PM +0000, Sitsofe Wheeler wrote:
> >> The main issue seems to be that /etc/issue isn't reparsed when agetty
> >> --reload is done unless /run/agetty.reload exists before the original
> >> agetty is started. Is this the intended behaviour?
> >
> > No, this is a bug, fixed by commit c9f5ec0faa2b2d9cf7fc162baf99499457b8b909.
> >
> >> The second issue occurs when --autologin and --login-pause are being
> >> used and a reload happens even when the above is done. Since the login
> >> program hasn't actually been started (as we are waiting for the user
> >> to press enter) I expected the reload to cause agetty to reload
> >> /etc/issue and start waiting again but this does not currently happen.
> >> Is this also intentional?
> >
> > Well, it wasn't implemented, improved by commit c2ef308bbfdc9fb9a0053e258828f5bd6fbb0c5d.
> >
> > The changes will be in v2.26.1.
>
> Phew, that was fast! I've found with your patches the first issue is
> fixed but when waiting at the [press ENTER to login] prompt agetty
> --reload still has no effect...
It works for me.
# grep autologin /etc/systemd/system/getty@.service
ExecStart=-/sbin/agetty --autologin kzak --login-pause --noclear %I $TERM
# echo "Hello world!" >> /etc/issue
# agetty --reload
.. then I see the "Hello..." line before [press ENTER to login].
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2015-03-09 20:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-08 21:02 agetty --reload Sitsofe Wheeler
2015-03-09 11:52 ` Karel Zak
2015-03-09 14:38 ` Sitsofe Wheeler
2015-03-09 20:12 ` Karel Zak [this message]
2015-03-12 2:10 ` Sitsofe Wheeler
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=20150309201259.GC26473@ws.net.home \
--to=kzak@redhat.com \
--cc=sitsofe@gmail.com \
--cc=util-linux@vger.kernel.org \
/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