Commit graph

32 commits

Author SHA1 Message Date
Christian Hewitt
e8391a769d busybox: add vfd-clock script/service 2022-10-01 06:40:19 +00:00
CvH
82e29f9e54
Merge pull request #5361 from vpeter4/utf8
glibc: include C.UTF-8 locale in image
2021-08-11 13:23:09 +02:00
mglae
cd1ecef50d systemd/busybox: allow configuration of persistent logs and journal via settings addon 2021-08-07 23:03:09 +02:00
Peter
a963782b40 glibc: include C.UTF-8 locale in image
Normally locale addon must be installed but users don't know that. Simplify this with adding default C.UTF-8 locale in image. Users can still install addon to use some other locale.

fixes Python3 error
UnicodeEncodeError: 'ascii' codec can't encode characters in position 40-41: ordinal not in range(128)

like
https://github.com/croneter/PlexKodiConnect/issues/1447
https://forum.libreelec.tv/thread/23116-pvr-recorder-unsuppored-locale/?postID=147453

from Kodi Python
  before
    sys.getdefaultencoding(): utf-8
    sys.getfilesystemencoding(): ascii
  after
    sys.getdefaultencoding(): utf-8
    sys.getfilesystemencoding(): utf-8

from SSH console
  before
    # locale
    LANG=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=

  after
    # locale
    LANG=C.UTF-8
    LC_CTYPE="C.UTF-8"
    LC_NUMERIC="C.UTF-8"
    LC_TIME="C.UTF-8"
    LC_COLLATE="C.UTF-8"
    LC_MONETARY="C.UTF-8"
    LC_MESSAGES="C.UTF-8"
    LC_PAPER="C.UTF-8"
    LC_NAME="C.UTF-8"
    LC_ADDRESS="C.UTF-8"
    LC_TELEPHONE="C.UTF-8"
    LC_MEASUREMENT="C.UTF-8"
    LC_IDENTIFICATION="C.UTF-8"
    LC_ALL=
2021-05-09 19:26:18 +02: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
chewitt
25e7ecaa43 busybox: add ledfix script/service 2020-07-06 06:49:47 +00:00
Matthias Reichl
d85c804c75 busybox: cleanup persistent log setup when debugging is enabled
The ancient approach of symlinking /var/log to /storage/log doesn't
play nice with systemd as it doesn't setup proper dependencies and
unmounting /storage during shutdown may fail because systemd doesn't
know that it's needed for /var/log.

Use a conditional bind mount instead so systemd can automatically
create proper dependencies and unmount filesystems in the correct order.

Also store the persistent logfiles on /storage in a .cache/log
directory instead of log to avoid confusing users - users can access
logfiles via /var/log.

Note: we can't use tmpfiles.d to create the .cache/log directory on
/storage because that would run after local-fs.target but we need
the .log directory before that so it has to be done via a one-shot
service.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-16 18:57:58 +02:00
MilhouseVH
05184d1d23 init: add rpi-flash-firmware service 2019-09-06 19:30:13 +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
MilhouseVH
09c59848af var.mount: remove Conflicts option 2017-07-06 19:28:19 +01:00
MilhouseVH
0da3ceaee5 console: enable cursor for textmode and RPi serial consoles 2016-04-02 18:36:17 +01:00
Lukas Rusak
40af353132 rebrand: LibreELEC 2016-03-12 01:41:55 +01:00
Stefan Saraev
4fffa76c53 fs-resize: move as systemd target 2015-01-19 19:27:51 +02:00
Stefan Saraev
ed90015484 var-log-debug: do not order before systemd-tmpfiles-setup
this makes no sense  and may stop systemd-tmpfiles-setup,
journald-flush, sshd, irserver from starting

===
Jan 18 18:23:03 openelec systemd[1]: Found ordering cycle on systemd-tmpfiles-setup.service/start
Jan 18 18:23:03 openelec systemd[1]: Found dependency on systemd-journal-flush.service/start
Jan 18 18:23:03 openelec systemd[1]: Found dependency on var-log-debug.service/start
Jan 18 18:23:03 openelec systemd[1]: Found dependency on systemd-tmpfiles-setup.service/start
Jan 18 18:23:03 openelec systemd[1]: Breaking ordering cycle by deleting job systemd-journal-flush.service/start
===

units with DefaultDependencies=no should be always properly ordered.
2015-01-18 18:44:55 +02:00
Stephan Raue
c3f8927149 debug-shell.service: move to sysinit 2014-11-08 18:48:14 +01:00
Stephan Raue
1835e5bf10 busybox: var-log-debug.service cosmetics 2014-08-24 02:19:43 +02:00
Stephan Raue
26732de6d0 busybox: textmode.target: no need to alias as default.target 2014-08-22 12:52:55 +02:00
Stephan Raue
d9dc64ed26 busybox: add 'morequiet' kernel command line option
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-06-11 18:49:41 +02:00
Stefan Saraev
2c835f85fd busybox: var-log-debug.service: start before systemd-journal-flush.service 2013-10-08 18:39:23 +03:00
Stefan Saraev
08e68d5001 busybox: start debugshell on "tty" boot parameter 2013-10-07 22:57:29 +03:00
Stefan Saraev
d2f5adf729 busybox: add dummy 'fs-resize' service 2013-09-15 21:54:16 +03:00
Stefan Saraev
baf8b197dc add optional /storage/.cache/debug.openelec to enable debugging 2013-08-30 20:35:24 +03:00
Stefan Saraev
8e09f70f83 var-log-debug: create persistent storage for journald in debug mode 2013-08-28 14:35:52 +03:00
Stephan Raue
93ef607941 busybox: rework 'debug-shell.service', should not start to early to dont lock /storage for possible umounts
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-24 22:02:38 +02:00
Stephan Raue
3711d4ed0c busybox: be sure /storage/log is a directory
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-19 23:18:54 +02:00
Stephan Raue
c0e0dc88a0 busybox: port textmode runlevel and textmode shell to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-18 19:41:24 +02:00
Stephan Raue
8a404d346b busybox: rework and enable /var/log relink to persistent store logfiles on /storage
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-16 15:43:13 +02:00
Stephan Raue
afddea760e busybox: rework debug shell systemd service scripts
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-16 12:22:06 +02:00
Stephan Raue
70a55de54b busybox: rework systemd service files
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-15 19:24:07 +02:00
Stephan Raue
c2f532bb8e busybox: port debugging /var/log relink to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-05 20:41:58 +02:00
Stephan Raue
a7321ceb20 busybox: port 'show version' setup to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-05 20:10:16 +02:00
Stephan Raue
d8a7c75bfc busybox: add initial systemd support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-05 10:44:06 +02:00