Commit Graph

193 Commits

Author SHA1 Message Date
Ian Leonard
9d03223e80 busybox: init: use buildsystem's SYSTEM_SIZE for update warning
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-10-17 22:03:09 +00:00
Ian Leonard
dba57ca636 init: stop checking for OPENELEC_ARCH
This stops LE's update checker from accepting OE images as system
updates. The checker may be disabled if someone wants to do this.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-03-23 18:54:44 +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
Matthias Reichl
cf763e204f init: create /run tmpfs in init
The filesystem options are set to match what systemd is using when
it would create the /run tmpfs, see src/core/mount-setup.c in
systemd source code.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-02-08 16:16:17 +01:00
Matthias Reichl
2da7a9f351 init: drop INIT_UNIT logic
This is now handled by the libreelec-target-generator systemd
generator.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-08-25 23:58:02 +02:00
Ian Leonard
50771db2ae Revert "busybox: init: remove usleep"
usleep is used by init's functions to create quarter and half second
progress reports. Not worth diving into for what was a 1.2kb savings.

This reverts commit 9e055544be.
2020-06-29 05:04:08 +00:00
Ian Leonard
9e055544be busybox: init: remove usleep
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2020-06-26 21:53:04 +00:00
Ian Leonard
a72e31a1a2 system: make configuration restore less selective on backup file names
Restoring system settings expects a filename of 14 characters followed
by .tar ($DATESTAMP.tar from the backup file the addon creates).

Change to glob onto whatever *.tar file gets put into /storage/.restore/
at the busybox init and system restore level. The addon still creates
and expects the $DATESTAMP.tar file, so users will need to use this
feature by ssh or other method.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2020-06-26 21:53:04 +00:00
MilhouseVH
db46d22cec init: remove file before overwriting 2020-01-25 06:53:32 +00:00
Matthias Reichl
9b10ad20d5 init: drop support for loading modules in initramfs
Support for modules in initramfs was removed more than half a year
ago but I forgot to remove the now useless load_modules function in
init.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-01-10 15:08:15 +01:00
Christian Hewitt
ec1a30b21d Merge pull request #4026 from mglae/le10_fsck_kmsg
init: fsck: fix kmsg log writes
2019-12-09 07:39:34 +08:00
MilhouseVH
c96889de82 Merge pull request #3990 from HiassofT/le10-init-hard-nfs-mount
init: don't mount nfs shares with soft option by default
2019-11-29 21:42:24 +00:00
mglae
414a958fab init: fsck: fix kmsg log writes 2019-11-28 00:10:21 +01:00
Matthias Reichl
fa8acf0782 init: don't mount nfs shares with soft option by default
Using the soft timeout option for NFS mounts is a really bad idea
and the nfs(5) manpage explicitly warns about it's issues:

    NB: A so-called "soft" timeout  can  cause  silent  data
    corruption  in  certain cases. As such, use the soft op‐
    tion only when client responsiveness is  more  important
    than  data  integrity.  Using NFS over TCP or increasing
    the value of the retrans option may mitigate some of the
    risks of using the soft option.

So don't enable it by default, anyone who feels keen to take the
risk can specify it manually on kernel command line.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-16 15:37:41 +01:00
Matthias Reichl
432b6a8d9e busybox: create marker file if kernel ip configuration is used
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-15 18:51:54 +01:00
MilhouseVH
ecbd566302 Merge pull request #3896 from antonlacon/le10-systemd-cpufreq
init: move cpufreq tuning to systemd service
2019-11-15 17:50:36 +00:00
MilhouseVH
03d07ab28f Update with vl805 support 2019-10-29 11:51:27 +00: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
399fe7ee80 init: conditionally unmount /update after a failed update 2019-10-18 16:42:41 +01:00
MilhouseVH
39f0f8023c Merge pull request #3856 from mglae/le10_fsck
init: fsck: wait for devices and unhide messages
2019-09-24 20:49:33 +01:00
MilhouseVH
bf9d3db27b Merge pull request #3825 from sky42src/le10-early-squashfs
busybox: init: mount squashfs early
2019-09-24 20:37:25 +01:00
MilhouseVH
993ac53944 init: add fix for RPi4 serial numbers 2019-09-23 17:17:52 +01:00
mglae
27672027c7 init: fsck: wait for devices and unhide messages 2019-09-19 23:46:25 +02:00
sky42
a76b173d7d busybox: init: changed upgrade to update in notes/messages 2019-09-18 20:46:55 +02:00
sky42
a62877a484 busybox: init: less mount/umount for update process 2019-09-18 20:37:51 +02:00