Commit Graph

18 Commits

Author SHA1 Message Date
MilhouseVH
130b602a6d shadow: detect corrupt content 2017-12-12 01:02:55 +00:00
MilhouseVH
8653021842 shadow: add usercache-setup and usercache service 2017-12-08 03:31:40 +00:00
MilhouseVH
dc30a81d1c shadow: move from .config to .cache 2017-12-08 03:31:30 +00:00
MilhouseVH
4c9ad98ae2 /etc/shadow: fix file permissions 2017-12-07 20:16:45 +00:00
Matthias Reichl
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
MilhouseVH
cae8b49942 userconfig: overwrite our sample files 2017-03-23 20:27:21 +00:00
chewitt
60d7aebfdc systemd: ensure /storage/.cache exists before writing machine-id 2016-06-06 11:53:29 +04:00
chewitt
bafd26a80d systemd: fix machine-id uniqueness 2016-05-08 03:50:02 +01:00
Stefan Saraev
046d192206 systemd: simplify userconfig.service
*.sample will not be force overwritten, but I dont really care
2014-08-04 02:03:41 +02:00
Stephan Raue
0f3e2d4ffa update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-21 21:51:48 +01:00
Stefan Saraev
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
Stefan Saraev
a403285976 systemd: userconfig: source /etc/profile
^^ progress()
2013-10-02 13:59:06 +03:00
Stephan Raue
755c10994e systemd: rework debugconfig service
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-18 14:10:28 +02:00
Stephan Raue
07bdeb6181 bluez: move obex init scripts to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-12 17:00:34 +02:00
Stephan Raue
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
Stephan Raue
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
Stephan Raue
6c126347ad busybox: port userconfig script setup to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-08 04:00:57 +02:00
Stephan Raue
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