0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-07 06:54:39 +00:00

34 Commits

Author SHA1 Message Date
4a54477bc8 systemd: network-base: alter hosts.conf if contents still default
add license header and shellcheck change too

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2023-03-28 00:49:00 +00:00
830c72fe53 systemd: fix systemd-machine-id-setup for v247 special case 2021-05-27 19:58:25 +02:00
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
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
af5bf90616 systemd: add /etc/environment and service 2019-12-18 00:49:13 +00:00
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
a3453d22c4 userconfig-setup: avoid // in test 2019-11-17 18:34:08 +00:00
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
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
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
d4f6326142 packages: align source code licence usage with project licence 2019-03-26 18:05:50 +00:00
23cc2e1b9b kernel-overlays-setup: fix ls error in journal if .config/firmware doesn't exist
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-12-15 14:28:47 +01:00
315421e634 linux: move .config/firmware handling to kernel overlay system
Creating an updates symlink to /storage/.config/firmware in the
kernel firmware directory makes it impossible to add firmware
overlays with an updates folder.

Furthermore bluez/hciattach only looks for firmware files directly in
the /lib/firmware directory and ignores the /lib/firmware/updates
directory. So adding BT firmware via .config/firmware didn't work.

Solve this by adding files from /storage/.config/firmware as the
last step in kernel overlays setup so firmware files from there
will show up directly under /lib/firmware and override other firmware
files installed by the system and kernel overlays.

Signed-off-by: Matthias Reichl <hias@horus.com>
2018-12-01 18:27:17 +01:00
a2d4af6a40 samba-config.service: fix destroying .cache structure 2018-09-21 23:44:00 +02:00
CvH
1b9cbdaf26 spdx: packages/sysutils 2018-07-18 22:37:47 +02:00
a8026292bb systemd: change uuid generation 2018-07-07 21:25:32 +04:00
130b602a6d shadow: detect corrupt content 2017-12-12 01:02:55 +00:00
8653021842 shadow: add usercache-setup and usercache service 2017-12-08 03:31:40 +00:00
dc30a81d1c shadow: move from .config to .cache 2017-12-08 03:31:30 +00:00
4c9ad98ae2 /etc/shadow: fix file permissions 2017-12-07 20:16:45 +00:00
ad9e8dc372 Add support for kernel overlays
Core Kernel modules are now installed to
/usr/lib/kernel-overlays/base/lib/modules instead of /usr/lib/modules

Firmware files are installed to
/usr/lib/kernel-overlays/base/lib/firmware instead of /usr/lib/firmware

Packages can choose to install their modules and/or firmwareinto a
different overlay directory than base so they are not automatically enabled.

A new systemd service kernel-overlays, which is run before any modules
are loaded, adds overlays enabled via /storage/.cache/kernel-overlays/*.conf

These conf files must either contain the name of a system overlay,
which will then be searched for in /usr/lib/kernel-overlays/, or an
absolute path starting with '/'.

Overlaying is implemented by symlinking files from the overlays
to /usr/lib/modules and /usr/lib/firmware as not all platforms
support overlayfs.

This overlaying system can also be used by addons to provide optional
kernel modules and/or firmware by storing the absolute path to the addon
directory in the conf file and shipping kernel modules in
<addondir>/lib/modules/<KERNELVER>.

To save space only symlinks for modules matching the currently
running kernel version are created as addons may want to ship
modules for older kernel versions as well to be backward-compatible
to older LibreELEC versions.

Changes since v1:
- fixup kernel-overlays-service: add before kmod-static-nodes.service
  Fix static device nodes for module autoloading not being created.
- fixup kernel-overlays-service: fail if /usr/lib/modules exists
- squash kernel overlays: use get_kernel_overlay_dir in linux/package.mk
- Add support for firmware files via kernel overlays
- config/functions: include kernel overlays in addon installation

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-10-12 20:04:02 +02:00
cae8b49942 userconfig: overwrite our sample files 2017-03-23 20:27:21 +00:00
60d7aebfdc systemd: ensure /storage/.cache exists before writing machine-id 2016-06-06 11:53:29 +04:00
bafd26a80d systemd: fix machine-id uniqueness 2016-05-08 03:50:02 +01:00
046d192206 systemd: simplify userconfig.service
*.sample will not be force overwritten, but I dont really care
2014-08-04 02:03:41 +02:00
0f3e2d4ffa update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-21 21:51:48 +01:00
260069cca7 systemd: rework machine-idd service
- always set a *valid* machine-id
- start machine-id.service before journald
2013-10-08 18:40:48 +03:00
a403285976 systemd: userconfig: source /etc/profile
^^ progress()
2013-10-02 13:59:06 +03:00
755c10994e systemd: rework debugconfig service
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-18 14:10:28 +02:00
07bdeb6181 bluez: move obex init scripts to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-12 17:00:34 +02:00
1399871f4d xorg-server: monitor debug.conf, start with debug logging if we start in debug mode, service files rework
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-11 04:26:38 +02:00
cf90aeee41 systemd: add debug config script and service, add avahi debug options
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-11 00:25:22 +02:00
6c126347ad busybox: port userconfig script setup to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-08 04:00:57 +02:00
85c9783459 busybox: port machine-id script setup to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-08 03:43:08 +02:00