Annotation of /trunk/systemd/patches/systemd-239-magellan-configurable-getty.patch
Parent Directory | Revision Log
Revision 3144 -
(hide annotations)
(download)
Wed Jun 27 07:04:55 2018 UTC (6 years, 2 months ago) by niro
File size: 1961 byte(s)
Wed Jun 27 07:04:55 2018 UTC (6 years, 2 months ago) by niro
File size: 1961 byte(s)
-re-diffed for v239
1 | niro | 3144 | diff -Naur systemd-239/getty systemd-239-magellan/getty |
2 | --- systemd-239/getty 1970-01-01 01:00:00.000000000 +0100 | ||
3 | +++ systemd-239-magellan/getty 2018-06-27 09:02:03.623618937 +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-239/meson.build systemd-239-magellan/meson.build | ||
17 | --- systemd-239/meson.build 2018-06-22 13:11:49.000000000 +0200 | ||
18 | +++ systemd-239-magellan/meson.build 2018-06-27 09:02:56.316916832 +0200 | ||
19 | @@ -137,6 +137,7 @@ | ||
20 | catalogstatedir = join_paths(systemdstatedir, 'catalog') | ||
21 | randomseeddir = join_paths(localstatedir, 'lib/systemd') | ||
22 | profiledir = join_paths(rootlibexecdir, 'portable', 'profile') | ||
23 | +gettyconfddir = join_paths(sysconfdir, 'conf.d') | ||
24 | |||
25 | docdir = get_option('docdir') | ||
26 | if docdir == '' | ||
27 | @@ -2696,6 +2697,8 @@ | ||
28 | install_dir : xinitrcdir) | ||
29 | install_data('modprobe.d/systemd.conf', | ||
30 | install_dir : modprobedir) | ||
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-239/units/getty@.service.m4 systemd-239-magellan/units/getty@.service.m4 | ||
37 | --- systemd-239/units/getty@.service.m4 2018-06-22 13:11:49.000000000 +0200 | ||
38 | +++ systemd-239-magellan/units/getty@.service.m4 2018-06-27 09:04:01.384049894 +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 %I $TERM | ||
49 | +ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $GETTY_SPEED $GETTY_TERM $GETTY_OPTS | ||
50 | Type=idle | ||
51 | Restart=always | ||
52 | RestartSec=0 |