Commit graph

330 commits

Author SHA1 Message Date
mglae
cd1ecef50d systemd/busybox: allow configuration of persistent logs and journal via settings addon 2021-08-07 23:03:09 +02:00
Tomáš Kelemen (vudiq)
de1dd0d394 Merge 'libreelec/master' up to 9.95.4 2021-06-03 08:04:37 +02:00
mglae
830c72fe53 systemd: fix systemd-machine-id-setup for v247 special case 2021-05-27 19:58:25 +02:00
heitbaum
0ab2c1a218 systemd: update to 247.7
update 247.3 (2021-02-03) to 247.7 (2021-05-16)

diffs: https://github.com/systemd/systemd-stable/compare/v247.3...v247.4
diffs: https://github.com/systemd/systemd-stable/compare/v247.4...v247.5
diffs: https://github.com/systemd/systemd-stable/compare/v247.5...v247.6
diffs: https://github.com/systemd/systemd-stable/compare/v247.6...v247.7

prs: https://github.com/systemd/systemd-stable/pulls?q=is%3Apr+is%3Aclosed

logs: https://github.com/systemd/systemd-stable/commits/v247.7
2021-05-23 09:04:08 +00:00
Tomáš Kelemen (vudiq)
4ab3d46e6e Lakka: fix systemd for retroarch overlay dirs 2021-04-05 20:30:54 +02:00
Lukas Rusak
a5099794ec
systemd: use default hwdb service 2021-03-02 08:15:12 -08:00
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
2f9d16a509 systemd: fix kernel-overlays.service ordering
kernel-overlays.service needs to be ordered before the modprobe@
instances, which were introduced in systemd 245, otherwise
modprobe@drm.service can run before /lib/firmware exists and
edid-override will fail.

Fix that by adding modprobe@.service template drop-in to order it
after kernel-overlays.service

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-12-22 20:48:06 +01:00
Sam Nazarko
dc90b0118a Add key-remapping via hwdb for OSMC remote controllers so key functionality is not affected when using international keyboard layouts. Deprecate the use of this via eventlircd.
Signed-off-by: Sam Nazarko <email@samnazarko.co.uk>
2020-12-05 16:37:43 +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
b393864994 systemd: backport cache timestamp fixes from master
This fixes systemd hanging on boot if no LAN cable is plugged
in (and thus time not set from NTP) with one core spinning at
100% CPU load.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-10-15 17:19:18 +02:00
Matthias Reichl
f0e958de52 systemd: add backport patch to fix device enumeration
This fixes partitions not showing up in kodi's "Files"
and "Media sources" sections.
See https://github.com/systemd/systemd/pull/17267

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-10-13 16:15:04 +02:00
Matthias Reichl
03b32a6f08 systemd: cleanup hwdb.service
Use systemd-hwdb instead of deprecated udevadm hwdb command
and fix ordering - it should be pulled in by sysinit.target,
not basic.target.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-09-29 09:51:48 +02: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
CvH
135e9a9694
Merge pull request #4261 from HiassofT/le10-oneshot-systemd-fix
add RemainAfterExit=yes to our oneshot systemd services
2020-05-31 10:44:00 +02:00
MilhouseVH
d73f667942 systemd: add kvm and render groups 2020-04-21 15:38:55 +01:00
Matthias Reichl
3a5b1f118f add RemainAfterExit=yes to our oneshot systemd services
This is required since systemd 245, without it oneshot services
may get started more than once.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-03-13 18:41:26 +01:00
MilhouseVH
8d9fb6dedc systemd: update to systemd-245 2020-03-06 12:42:40 +00:00
Matthias Reichl
dad3581441 kernel-overlays: move volatile runtime data to /run
Create the module and firmware symlink trees in /run/kernel-overlays
instead of /var/lib as recommended by FHS 3.0. This also allows us
to drop the After=var.mount ordering in the systemd service.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-01-10 12:03:23 +01:00
Christian Hewitt
e2a591b5ac
Merge pull request #4065 from MilhouseVH/le10_ssh_env
image: add /etc/environment
2020-01-08 19:25:34 +04:00
Sam Nazarko
2dac05167d Add support for OSMC RF rev 2.5
Signed-off-by: Sam Nazarko <email@samnazarko.co.uk>
2019-12-30 11:13:37 +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
Christian Hewitt
ff5c69f9d5
Merge pull request #4031 from HiassofT/le10-systemd-244
systemd: update to v244
2019-12-09 07:56:03 +08:00
Christian Hewitt
651e46c08e
Merge pull request #3995 from MilhouseVH/le10_userconfig_off_by_one
userconfig-setup: avoid // in test
2019-12-02 07:21:20 +04:00
Christian Hewitt
c00c2b5561
Merge pull request #4020 from HiassofT/le10-install-hwdb
add hwdb.d installations from packages, make o2.cz BT remote config globally available
2019-12-01 11:49:00 +04: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
MilhouseVH
29479e55d0
Merge pull request #3984 from HiassofT/le10-systemd-storage-deps
systemd: prevent unmounting storage via umount.target
2019-11-29 21:38:28 +00:00
Matthias Reichl
1425c344ca move 70-local-keyboard.hwdb from Amlogic project to systemd package
The bluetooth remote configuration (missing OK button on o2.cz
remote) can be useful for all LE installations so make it globally
available.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-23 13:03:53 +01:00
MilhouseVH
a3453d22c4 userconfig-setup: avoid // in test 2019-11-17 18:34:08 +00: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
Matthias Reichl
ed4e345f25 systemd: prevent unmounting storage via umount.target
/storage will be unmounted by systemd-shutdown, like /flash.

As the squashfs root has several symlinks to /storage it
should not be unmounted during the normal shutdown process.
This prevents the symlinked files/directories vanishing too early
and also removes the "unmount /storage failed" messages when
netbooting.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-15 17:30:11 +01:00
Matthias Reichl
87358cf841 systemd: add backport patch from PR 14040
This removes the root mount dependency on systemd-journal.socket
and fixes drop-in loading for storage.mount.

See https://github.com/systemd/systemd/pull/14040

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-15 17:30:11 +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
MilhouseVH
a404c441a0
Merge pull request #3804 from HiassofT/le10-systemd-fix-fs-corruption
fix filesystem corruption on reboot/shutdown
2019-09-18 19:43:35 +01: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
Matthias Reichl
74de7b2aca systemd: prevent unmounting flash via umount.target
add drop-in to set DefaultDependencies=no on /flash mount. This
removes the Conflicts=umount.target and /flash won't be unmounted
by systemd. systemd-shutdown will then later remount it ro and
try to unmount it.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-13 23:44:19 +02:00
Matthias Reichl
8d9dd9ec67 systemd: drop patch that causes filesystem corruption on reboot/shutdown
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-08 23:53:08 +02:00
MilhouseVH
61e9c1fe4e systemd: update to systemd-243 2019-09-03 21:31:57 +01:00
MilhouseVH
46a7b470a5 systemd: eat up RDRAND values seen on AMD cpus 2019-07-09 18:44:21 +01:00
MilhouseVH
88323acbc1 systemd: fix issues after #3326
/etc/98-busybox.conf configures the prompt and TERM.

PR #3326 stopped sourcing /etc/profile, which meant the
prompt no longer includes the HOSTNAME.

Additionally, #3326 removed code which unhides the cursor.
2019-06-29 02:42:23 +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