mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
units/*getty*: use /usr/sbin/agetty
Same way that we do it for quotaon and debug-shell by going through meson
This commit is contained in:
@@ -636,6 +636,7 @@ progs = [['quotaon', '/usr/sbin/quotaon' ],
|
||||
['sulogin', '/usr/sbin/sulogin' ],
|
||||
['swapon', '/usr/sbin/swapon' ],
|
||||
['swapoff', '/usr/sbin/swapoff' ],
|
||||
['agetty', '/usr/sbin/agetty' ],
|
||||
['mount', '/usr/bin/mount', 'MOUNT_PATH'],
|
||||
['umount', '/usr/bin/umount', 'UMOUNT_PATH'],
|
||||
['loadkeys', '/usr/bin/loadkeys', 'KBD_LOADKEYS'],
|
||||
|
@@ -59,6 +59,7 @@ option('kexec-path', type : 'string', description : 'path to kexec')
|
||||
option('sulogin-path', type : 'string', description : 'path to sulogin')
|
||||
option('swapon-path', type : 'string', description : 'path to swapon')
|
||||
option('swapoff-path', type : 'string', description : 'path to swapoff')
|
||||
option('agetty-path', type : 'string', description : 'path to agetty')
|
||||
option('mount-path', type : 'string', description : 'path to mount')
|
||||
option('umount-path', type : 'string', description : 'path to umount')
|
||||
option('loadkeys-path', type : 'string', description : 'path to loadkeys')
|
||||
|
@@ -351,7 +351,7 @@ create_session() {
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin logind-test-user --noclear %I $TERM
|
||||
ExecStart=-/usr/sbin/agetty --autologin logind-test-user --noclear %I $TERM
|
||||
Restart=no
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
|
@@ -20,7 +20,7 @@ Before=getty.target
|
||||
ConditionPathExists=/dev/console
|
||||
|
||||
[Service]
|
||||
ExecStart=-/sbin/agetty --noreset --noclear --issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d --keep-baud 115200,57600,38400,9600 - ${TERM}
|
||||
ExecStart=-{{AGETTY}} --noreset --noclear --issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d --keep-baud 115200,57600,38400,9600 - ${TERM}
|
||||
Type=idle
|
||||
Restart=always
|
||||
UtmpIdentifier=cons
|
||||
|
@@ -25,7 +25,7 @@ Conflicts=rescue.service
|
||||
Before=rescue.service
|
||||
|
||||
[Service]
|
||||
ExecStart=-/sbin/agetty --noreset --noclear --issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d - ${TERM}
|
||||
ExecStart=-{{AGETTY}} --noreset --noclear --issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d - ${TERM}
|
||||
Type=idle
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
|
@@ -34,7 +34,7 @@ Before=rescue.service
|
||||
ConditionPathExists=/dev/tty0
|
||||
|
||||
[Service]
|
||||
ExecStart=-/sbin/agetty --noreset --noclear --issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d - ${TERM}
|
||||
ExecStart=-{{AGETTY}} --noreset --noclear --issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d - ${TERM}
|
||||
Type=idle
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
|
@@ -30,7 +30,7 @@ Conflicts=rescue.service
|
||||
Before=rescue.service
|
||||
|
||||
[Service]
|
||||
ExecStart=-/sbin/agetty --noreset --noclear --issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d --keep-baud 115200,57600,38400,9600 - ${TERM}
|
||||
ExecStart=-{{AGETTY}} --noreset --noclear --issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d --keep-baud 115200,57600,38400,9600 - ${TERM}
|
||||
Type=idle
|
||||
Restart=always
|
||||
UtmpIdentifier=%I
|
||||
|
Reference in New Issue
Block a user