Commit graph

182 commits

Author SHA1 Message Date
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
MilhouseVH
592849d88e systemd: disable options being detected automagically 2019-04-13 16:33:52 +01:00
MilhouseVH
f6f6b4f01b systemd: drop unknown options 2019-04-13 03:12:08 +01:00
MilhouseVH
9bd99d14b8 systemd: update to systemd-242 2019-04-11 18:32:50 +01:00
Lukas Rusak
2ca0df2ae0
systemd: use safe_remove macro 2019-02-25 09:37:54 -08:00
CvH
85e5b4dc1f cleanup: PKG_SHORTDESC 2018-10-22 15:06:12 +02:00
CvH
4cffa5fe6f cleanup: remove PKG_ARCH="any" 2018-10-22 15:06:12 +02:00
CvH
4317bc5002 cleanup: remove PKG_SECTION 2018-10-22 15:06:11 +02:00
MilhouseVH
31aacbaa99 systemd: use correct licence 2018-08-01 23:40:03 +01:00
CvH
1b9cbdaf26 spdx: packages/sysutils 2018-07-18 22:37:47 +02:00
Matthias Reichl
f35ddd9fa9 systemd: add systemd-timesync user and group
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-06-24 15:16:06 +02:00
Matthias Reichl
949095514d systemd: enable timesyncd build
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-06-23 10:44:00 +02:00
Matthias Reichl
e06bc305a8 systemd: update to 239
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-06-23 10:44:00 +02:00
Sascha Kuehndel (InuSasha)
96868644d9
systemd: add cflags for build with gcc8 2018-06-04 20:17:15 +02:00
MilhouseVH
d2c492426e
Merge pull request #2652 from lrusak/systemd-update
systemd: update to v238
2018-04-30 22:59:54 +01:00
Matthias Reichl
2c2ee230e8 systemd: allow logind.conf.d user configurations
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-04-21 10:03:10 +02:00
Matthias Reichl
bf217bc814 systemd: ignore power button
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-04-21 10:03:07 +02:00
Lukas Rusak
8b64d0c556
systemd: update to v238 2018-04-18 11:54:29 -07:00
Sascha Kuehndel (InuSasha)
d38cadaf8c
meson: update to 0.45
- generate cross-file per package, needed since https://github.com/mesonbuild/meson/pull/1807 to use changed build-flags
2018-03-21 17:10:10 +01:00
MilhouseVH
8131c87e21 systemd: update to systemd-237
Needed to compile with glibc-2.27

No need to build test suite.
2018-02-05 19:20:54 +00:00
Lukas Rusak
211f8b5fa8
Merge pull request #2346 from adamg88/le90_s905.update.3
systemd: make sleep.conf.d configurable by user
2017-12-29 13:24:05 -08:00
Matthias Reichl
5b816aa09c systemd: enable hostnamed
Signed-off-by: Matthias Reichl <hias@horus.com>
2017-12-29 12:24:58 +01:00
kszaq
615a1840f5
systemd: make sleep.conf.d configurable by user 2017-12-21 11:20:26 +00:00
Lukas Rusak
5090704cce
systemd: update to 236 2017-12-17 09:48:15 -08:00
MilhouseVH
8653021842 shadow: add usercache-setup and usercache service 2017-12-08 03:31:40 +00:00
Lukas Rusak
bbbe7fb63b
systemd: update to 235 and use meson 2017-10-20 14:19:00 -07:00
cvh
837b447b7c decommission PKG_IS_ADDON 2017-10-16 00:01:20 +02: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
Christian Hewitt
38013dbc00 Merge pull request #1800 from MilhouseVH/udev_cleanup
udev: cleanup
2017-07-22 21:49:57 +04:00
Peter Vicman
50a51452be build system: add sha256 checksum to all packages
putting #1597 in use
2017-07-17 20:49:23 +02:00
MilhouseVH
71720c86c1 systemd: remove uaccess rules as we don't build with ACL 2017-07-16 22:32:27 +01:00