Annotation of /trunk/systemd/patches/systemd-253-magellan-configurable-getty.patch
Parent Directory
|
Revision Log
Revision 3761 -
(hide annotations)
(download)
Thu Aug 10 13:21:19 2023 UTC (10 months ago) by niro
File size: 1943 byte(s)
Thu Aug 10 13:21:19 2023 UTC (10 months ago) by niro
File size: 1943 byte(s)
-rediffed for systemd-253
1 | niro | 3761 | diff -Naur systemd-253/conf.d/getty systemd-253-magellan/conf.d/getty |
2 | --- systemd-253/conf.d/getty 1970-01-01 01:00:00.000000000 +0100 | ||
3 | +++ systemd-253-magellan/conf.d/getty 2023-08-10 14:51:32.583421332 +0200 | ||
4 | @@ -0,0 +1,11 @@ | ||
5 | +# Getty configuration file | ||
6 | + | ||
7 | +# Default getty speed | ||
8 | +GETTY_SPEED="38400" | ||
9 | + | ||
10 | +# Getty options like --autologin etc | ||
11 | +GETTY_OPTS="" | ||
12 | + | ||
13 | +# Getty default terminal emulation mode | ||
14 | +GETTY_TERM="linux" | ||
15 | + | ||
16 | diff -Naur systemd-253/meson.build systemd-253-magellan/meson.build | ||
17 | --- systemd-253/meson.build 2023-02-15 20:11:52.000000000 +0100 | ||
18 | +++ systemd-253-magellan/meson.build 2023-08-10 14:54:20.662645789 +0200 | ||
19 | @@ -206,6 +206,7 @@ | ||
20 | randomseeddir = localstatedir / 'lib/systemd' | ||
21 | profiledir = rootlibexecdir / 'portable' / 'profile' | ||
22 | ntpservicelistdir = rootprefixdir / 'lib/systemd/ntp-units.d' | ||
23 | +gettyconfddir = sysconfdir / 'conf.d' | ||
24 | |||
25 | docdir = get_option('docdir') | ||
26 | if docdir == '' | ||
27 | @@ -4261,6 +4262,8 @@ | ||
28 | install_data('xorg/50-systemd-user.sh', | ||
29 | install_dir : xinitrcdir) | ||
30 | endif | ||
31 | +install_data('conf.d/getty', | ||
32 | + install_dir : gettyconfddir) | ||
33 | install_data('LICENSE.GPL2', | ||
34 | 'LICENSE.LGPL2.1', | ||
35 | 'NEWS', | ||
36 | diff -Naur systemd-253/units/getty@.service.in systemd-253-magellan/units/getty@.service.in | ||
37 | --- systemd-253/units/getty@.service.in 2023-02-15 20:11:52.000000000 +0100 | ||
38 | +++ systemd-253-magellan/units/getty@.service.in 2023-08-10 14:56:55.795014882 +0200 | ||
39 | @@ -34,11 +34,12 @@ | ||
40 | ConditionPathExists=/dev/tty0 | ||
41 | |||
42 | [Service] | ||
43 | +EnvironmentFile=-/etc/conf.d/getty | ||
44 | # the VT is cleared by TTYVTDisallocate | ||
45 | # The '-o' option value tells agetty to replace 'login' arguments with an | ||
46 | # option to preserve environment (-p), followed by '--' for safety, and then | ||
47 | # the entered username. | ||
48 | -ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear - $TERM | ||
49 | +ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear - $GETTY_SPEED $GETTY_TERM $GETTY_OPTS | ||
50 | Type=idle | ||
51 | Restart=always | ||
52 | RestartSec=0 |