241 Commits

Author SHA1 Message Date
mglae
8dca6fefa3 systemd: remove systemd-time-wait-sync and depend on wait-time-sync 2020-06-15 18:27:23 +02:00
chewitt
cffbf60a6a systemd: add 70-local-keyboard.hwdb to systemd package 2020-01-22 07:25:28 +00:00
Matthias Reichl
dd6f2cfe5c 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-16 17:38:24 +01:00
Matthias Reichl
092e574f57 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-16 17:38:24 +01:00
Matthias Reichl
4f5fee7653 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-16 17:31:39 +01:00
Matthias Reichl
4159f97316 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-16 17:31:18 +01:00
Matthias Reichl
259a5b7f73 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-19 09:09:27 +02:00
MilhouseVH
e1d6e92907 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-09-19 09:09:27 +02:00
Lukas Rusak
010bd5fd9d 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-09-19 09:09:27 +02:00
Matthias Reichl
dd198bf0b4 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:50:26 +02:00
Matthias Reichl
87e293535a systemd: drop patch that causes filesystem corruption on reboot/shutdown
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-09 10:45:05 +02:00
MilhouseVH
8dbe022c96 systemd: eat up RDRAND values seen on AMD cpus 2019-07-09 18:45:42 +01:00
Matthias Reichl
d015207763 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-06-15 06:26:29 +01:00
MilhouseVH
309c06aa95 systemd: add new options 2019-06-15 06:26:29 +01:00
MilhouseVH
48454e8f09 systemd: disable options being detected automagically 2019-06-15 06:26:29 +01:00
MilhouseVH
dce3e3d9b2 systemd: drop unknown options 2019-06-15 06:26:29 +01:00
MilhouseVH
bf92570214 systemd: update hwdb.bin patch 2019-06-15 06:26:29 +01:00
MilhouseVH
f308199746 systemd: drop patches 2019-06-15 06:26:29 +01:00
MilhouseVH
33a9e93a8b systemd: update to systemd-242 2019-06-15 06:26:29 +01:00
Ian Leonard
902f198d46 systemd: add depend on libidn2
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-06-13 22:12:20 +01:00
MilhouseVH
d4f6326142 packages: align source code licence usage with project licence 2019-03-26 18:05:50 +00:00
Lukas Rusak
2ca0df2ae0
systemd: use safe_remove macro 2019-02-25 09:37:54 -08:00
MilhouseVH
ad6c9ea874 systemd: fix meson 0.49.1 compatability
https://github.com/systemd/systemd/pull/9885

Drop patch with systemd-241
2019-02-03 11:40:28 +00:00
Matthias Reichl
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
Matthias Reichl
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
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
mglae
a2d4af6a40 samba-config.service: fix destroying .cache structure 2018-09-21 23:44:00 +02:00
MilhouseVH
499c11c7b5 Amlogic/Rockchip: Fix build with glibc-2.28 2018-08-13 12:21:34 +01:00
MilhouseVH
31aacbaa99 systemd: use correct licence 2018-08-01 23:40:03 +01:00
MilhouseVH
4c22f3ecda systemd: fix build with glibc-2.28 2018-08-01 23:40:03 +01:00
CvH
1b9cbdaf26 spdx: packages/sysutils 2018-07-18 22:37:47 +02:00
Christian Hewitt
b862b263fc
Merge pull request #2791 from HiassofT/le9-systemd-239
systemd: update to 239
2018-07-15 07:31:10 +04:00
MilhouseVH
65d87ea47f
Merge pull request #2708 from chewitt/systemd-machineid
systemd: change uuid generation
2018-07-07 18:26:10 +01:00
chewitt
a8026292bb systemd: change uuid generation 2018-07-07 21:25:32 +04: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
CvH
3d36d65293 systemd: add patches to fix 3.14 aml 2018-05-16 13:35:27 +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
5e68a5b88b systemd: fix build with kernel 3.10 2018-02-05 19:20:55 +00:00
MilhouseVH
003ec420d4 systemd: fix glibc-2.27 build with pre-3.17.0 kernels 2018-02-05 19:20:55 +00: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
MilhouseVH
0fa5bc6604 systemd: persist persistent timer stamps 2018-01-08 13:48:56 +00:00