Commit Graph

137 Commits

Author SHA1 Message Date
Matthias Reichl
9a3ba922db Merge pull request #5068 from heitbaum/aa-s4
systemd: update to 247.3
2021-02-16 23:35:14 +01:00
heitbaum
bbe5cb5fc5 systemd: update to 247.3
update 247 to 247.3
changelog:
use systemd-stable source as it includes backports of patches from systemd
git to stable distributions
2021-02-14 20:50:00 +00:00
Matthias Reichl
8f1344f6fd Move kernel overlays setup to init
When running kernel-overlays-setup as a systemd service we have
a short window where /lib/firmware isn't available.

This causes drm edid override to occasionally fail if the edid file
is requested between switching to sysroot and completion of the
kernel-overlays-setup script.

Setting up firmware and module overlays in init, before switching
to sysroot, closes the gap and also has the benefit that we no longer
need to care about the rather tedious systemd unit ordering.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-02-08 16:16:17 +01:00
Ian Leonard
b31ce30170 sysutils: automated code cleanup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-01-19 19:34:16 +00:00
Matthias Reichl
54744c7003 systemd: update to 247
Signed-off-by: Matthias Reichl <hias@horus.com>
2020-11-27 22:24:01 +01:00
Matthias Reichl
6095b46cf7 systemd: cleanup safe_remove warnings
Signed-off-by: Matthias Reichl <hias@horus.com>
2020-09-29 09:36:02 +02:00
Matthias Reichl
8ccfbe6294 systemd: update to v246
Signed-off-by: Matthias Reichl <hias@horus.com>
2020-09-29 00:15:53 +02:00
mglae
2dbe701b39 systemd: remove systemd-time-wait-sync and depend on wait-time-sync 2020-06-10 23:46:17 +02:00
MilhouseVH
d73f667942 systemd: add kvm and render groups 2020-04-21 15:38:55 +01:00
MilhouseVH
8d9fb6dedc systemd: update to systemd-245 2020-03-06 12:42:40 +00:00
MilhouseVH
af5bf90616 systemd: add /etc/environment and service 2019-12-18 00:49:13 +00:00
MilhouseVH
29def585c6 systemd: enable utmp support 2019-12-10 21:10:38 +00:00
Matthias Reichl
c31015f684 systemd: update to v244
dropped mountinfo backport patch as it's in upstream version.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-29 22:44:14 +01:00
Matthias Reichl
750dd4add2 systemd: enable systemd-timesyncd when using kernel ip configuration
connman's NTP client can't be used if it's not managing the network
interface so use systemd's timesyncd as we already build it.

timesyncd is automatically configured to use the NTP servers provided
by kernel ip config, if they are missing the default fallback NTP
servers (currently the ones from Google) are used.

Users can also provide timesyncd configuration files via
/storage/.config/timesyncd.conf.d/ eg to change the (fallback) servers.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-15 18:54:04 +01:00
Matthias Reichl
1dfbcbd8b4 connman: move host and resolver configuration to separate service
Setup system hostname, /etc/resolv.conf and /etc/hosts in a service
that can be run independently of connman.

The volatile etc files are created in /run/libreelec instead of
/run/connman so they can be modified similarily to standard linux
installations with a writable /etc. Connman can then hook into
that and move resolv.conf management to /run/connman/resolv.conf when
it's started.

If kernel IP configuration is used the resolv info from the kernel
will be used to create resolv.conf. Users can also provide their
own resolv.conf file in /storage/.config/resolv.conf which takes
precedence over ther kernel info. If no resolv.conf info is present
a fallback with use the Google nameservers is created (as before).

Loopback network interface setup has been removed, this is already
set up by systemd.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-15 18:54:04 +01:00
Ian Leonard
f27caaddc1 systemd: use a cpufreq service to configure cpu governor
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-10-28 15:55:22 +00:00
MilhouseVH
bb51497898 Merge pull request #3843 from HiassofT/le10-debug-shell
systemd: use upstream method to enable and configure debug shell
2019-09-24 20:44:17 +01:00
Sascha Kuehndel (InuSasha)
8903d66bb6 meson: use TARGET_x 2019-09-19 11:14:43 +02:00
Matthias Reichl
dd2694fc74 systemd: use upstream method to enable and configure debug shell
With systemd-debug-generator installed we can use the standard
"systemd.debug_shell" kernel command line parameter to enable the debug
shell. Since systemd 243 the tty can also be changed by appending
"=ttyXYZ" to that parameter.

Use this method instead of enabling the debug shell on all systems
by default.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-18 15:28:18 +02:00
MilhouseVH
61e9c1fe4e systemd: update to systemd-243 2019-09-03 21:31:57 +01:00
Matthias Reichl
6fa58dd895 systemd: add version-tag build option
Without this option systemd 241 and newer builds will run git describe
and report the LibreELEC git tree info as version, eg in journal

systemd 8.95.002-927-gb1cdc76 running in system mode.

With version-tag set the version is reported like before

systemd 242 running in system mode.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-05-11 11:36:58 +02:00
MilhouseVH
1816badd86 Merge pull request #3373 from antonlacon/libidn2
image: add libidn2 to system image
2019-05-09 01:24:27 +01:00
Lukas Rusak
ec17cea5e6 systemd: enable switch debug-tty to provide a debug console
This allows us to use the default debug-shell.service provided
by systemd and cut down on custom made services. This will also
always provide a debug shell as there is no reason we shouldn't
have access to one.
2019-05-08 11:54:58 -07:00
Ian Leonard
e8db57f8a9 systemd: add depend on libidn2
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-05-04 08:30:18 +00:00
MilhouseVH
1b0eab5098 systemd: add new options 2019-04-13 18:51:41 +01:00