Commit Graph

338 Commits

Author SHA1 Message Date
CvH
d09d7c51b2 pastebinit: use LE paste service 2023-12-10 22:00:52 +01:00
mglae
671a358b65 busybox: fs-resize: use parted to fix gpt errors instead of sgdisk
parted's 6.3 "--fix" parameter now allows non-interactive fixing

gptfdisk package dependency is removed
2023-06-04 12:17:09 +02:00
mglae
76bda434d5 busybox: createlog: don't include journal files of persistent logging 2023-04-23 19:31:00 +02:00
mglae
c4c635b04c fs-resize: log to /flash
Add simple logging to ease debugging of future errors
2023-03-30 18:42:21 +02:00
mglae
597423a948 fs-resize: print error if disk or partition was not deteced 2023-03-30 18:42:20 +02:00
mglae
47baee87f4 fs-resize: add nvme support 2023-03-30 18:42:18 +02:00
Ian Leonard
787b30b24b busybox: createlog: no githash stored in /etc/issue
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2023-03-18 06:31:06 +00:00
Ian Leonard
462b767ce4 busybox: createlog: cleanup
Only create a logfile for the previous boot if persistent journal
is being used.

Also applies some changes for shellcheck warnings:

`...` to $(...)
Verifying variable is set ${var:?} before rm'ing
Useless use of cat
Command grouping when the commands redirect to the same file
Use of == in [...]
[ test1 -a test2 ] to [ test1 ] && [ test2 ]

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2023-03-18 06:30:34 +00:00
Christian Hewitt
8cc6cb9db8 busybox: add t95z-plus to vfd-clock 2023-02-26 13:06:34 +00:00
Christian Hewitt
29e9c4c936 systemd: add tx9-pro to vfd-clock script 2023-02-12 11:22:11 +00:00
Christian Hewitt
e8391a769d busybox: add vfd-clock script/service 2022-10-01 06:40:19 +00:00
Christian Hewitt
9ca8e10854 busybox: find extlinux on alternative /flash layouts 2021-11-26 12:00:19 +00:00
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
CvH
b30f709a56 Merge pull request #5266 from antonlacon/oe-init
init: stop checking for OPENELEC_ARCH
2021-08-11 13:23:45 +02:00
mglae
8ba9ad0273 busybox: kernel-overlays-setup: log depmod to /dev/kmsg 2021-05-24 19:56:27 +02: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
76fd023bb0 busybox: add getedid script for RPi
The getedid script supports the "create" and "delete" options like
the x86 version.

It makes use of the "dump-active-edids", "create-edid-cpio" and
"update-bootloader-edid" scripts and can be used as is on other
DRM platforms as well as it doesn't contain any RPi specific code.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-03-23 19:18:09 +01:00
Matthias Reichl
f962a4b2b6 busybox: add script to modify edid override with RPi bootloader
The script supports two operations:

"set" enables initramfs cpio in config.txt and adds edid and video
override kernel options for the specified connectors to cmdline.txt

"delete" removes edid.cpio initramfs loading in config.txt and
removes all edid override and video options from cmdline.txt

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-03-23 18:59:28 +01:00
Matthias Reichl
a02a2e8b51 busybox: add script to dump edids of active DRM connectors
The script dumps all edids of currently active connectors to
.config/firmware/edid as edid-CONNECTORNAME.bin

When run with the "-q" option informative messages are disabled
and only the active connectors are returned so the output can
be easily used by other scripts.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-03-23 18:59:28 +01:00
Matthias Reichl
0039f93de6 busybox: add create-edid-cpio script
This script simply creates /flash/edid.cpio with the contents from
.config/firmware/edid

Compared to the x86 specific getedid script this works on all platforms
as it doesn't contain any platform specific code. Eventually getedid
should be refactored make use of this helper script, too.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-03-23 18:59:28 +01:00
Matthias Reichl
32b3089c1b Merge pull request #5265 from lrusak/busybox-fix
busybox: fix createlog udev rule wildcard
2021-03-21 21:03:55 +01:00
Lukas Rusak
e23d57194a busybox: fix createlog udev rule wildcard 2021-03-21 12:55:34 -07:00
Ian Leonard
d852a3b6e7 system: use generic filenames for reset trigger
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-03-10 02:25:01 +00:00
Matthias Reichl
a62294272a busybox: create /storage/.cache/kernel-overlays via tmpfiles.d
Signed-off-by: Matthias Reichl <hias@horus.com>
2021-02-08 16:16:17 +01: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