I want to remove the default newline inserted before the content of /etc/issue
on login prompt in tty
. I'm using agetty
and systemd
.
I tried to add the --nonewline
option to my [email protected]
:
ExecStart=/sbin/agetty --nonewline --noclear %I $TERM
That result in :
# systemctl status -l [email protected]
● [email protected] - Getty on tty5
Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled)
Active: failed (Result: start-limit) since sam. 2014-05-17 23:50:13 CEST; 56s ago
Docs: man:agetty(8)
man:systemd-getty-generator(8)
http://0pointer.de/blog/projects/serial-console.html
Process: 14538 ExecStart=/sbin/agetty --nonewline --noclear %I $TERM (code=exited, status=1/FAILURE)
Main PID: 14538 (code=exited, status=1/FAILURE)
systemd[1]: [email protected] has no holdoff time, scheduling restart.
systemd[1]: Stopping Getty on tty5...
systemd[1]: Starting Getty on tty5...
systemd[1]: [email protected] start request repeated too quickly, refusing to start.
systemd[1]: Failed to start Getty on tty5.
systemd[1]: Unit [email protected] entered failed state.
And I get :
# journalctl --no-pager -b -u [email protected]
-- Logs begin at sam. 2013-10-12 00:20:12 CEST, end at sam. 2014-05-17 23:52:49 CEST. --
systemd[1]: Starting Getty on tty5...
systemd[1]: Started Getty on tty5.
agetty[14497]: Usage:
agetty[14497]: agetty [options] <line> [<baud_rate>,...] [<termtype>]
agetty[14497]: agetty [options] <baud_rate>,... <line> [<termtype>]
agetty[14497]: Options:
agetty[14497]: -8, --8bits assume 8-bit tty
agetty[14497]: -a, --autologin <user> login the specified user automatically
agetty[14497]: -c, --noreset do not reset control mode
agetty[14497]: -E, --remote use -r <hostname> for login(1)
agetty[14497]: -f, --issue-file <file> display issue file
agetty[14497]: -h, --flow-control enable hardware flow control
agetty[14497]: -H, --host <hostname> specify login host
agetty[14497]: -i, --noissue do not display issue file
agetty[14497]: -I, --init-string <string> set init string
agetty[14497]: -l, --login-program <file> specify login program
agetty[14497]: -L, --local-line[=<mode>] control the local line flag
agetty[14497]: -m, --extract-baud extract baud rate during connect
agetty[14497]: -n, --skip-login do not prompt for login
agetty[14497]: -o, --login-options <opts> options that are passed to login
agetty[14497]: -p, --login-pause wait for any key before the login
agetty[14497]: -r, --chroot <dir> change root to the directory
agetty[14497]: -R, --hangup do virtually hangup on the tty
agetty[14497]: -s, --keep-baud try to keep baud rate after break
agetty[14497]: -t, --timeout <number> login process timeout
agetty[14497]: -U, --detect-case detect uppercase terminal
agetty[14497]: -w, --wait-cr wait carriage-return
agetty[14497]: --noclear do not clear the screen before prompt
agetty[14497]: --nohints do not print hints
agetty[14497]: --nonewline do not print a newline before issue
agetty[14497]: --nohostname no hostname at all will be shown
agetty[14497]: --long-hostname show full qualified hostname
agetty[14497]: --erase-chars <string> additional backspace chars
agetty[14497]: --kill-chars <string> additional kill chars
agetty[14497]: --help display this help and exit
agetty[14497]: --version output version information and exit
agetty[14497]: For more details see agetty(8).
systemd[1]: [email protected] has no holdoff time, scheduling restart.
systemd[1]: Stopping Getty on tty5...
Why agetty
don't want to recognize the option ? Is there another way to do that ?