354 Commits

Author SHA1 Message Date
Douglas Teles 71d8968a1a FHS F3: logs and update over Arch paths
Class F (logs) and Class G (temp/update) reshuffled.

Logs:
- /var/log was already a mount from /storage/.cache/log via
  packages/sysutils/busybox/system.d/var-log.mount, so journald already
  writes to /var/log/journal in FHS terms. runemu.sh debug log moves
  from /storage/.cache/log/runemu-debug.log to /var/log/runemu-debug.log
  (same physical bytes, FHS surface).
- createlog (top-level busybox script) packs archive zips into
  /var/log/archr/archive instead of /storage/logfiles. ArchR tmpfiles
  z_01_archr.conf creates the backing dir under the storage overlay so
  the path is writable on first boot.

Update:
- /var/cache/archr/update is a bridge symlink to /storage/.update added
  by the archr meta-package. archr-update, automount and the [update]
  samba share all flipped to the FHS path.
- factoryreset still preserves /storage/.update by its real name in
  the find regex; that path is also what the pre-boot bootloader
  scripts read, so the backing path is the canonical one and the
  bridge is just the userland surface. Comment added so this is
  obvious to future readers.
- busybox/scripts/init keeps UPDATE_ROOT=/storage/.update because it
  runs in the initramfs before /var is even available.

Overlayfs workdirs (/storage/.tmp/*-workdir) and /storage/.boot.hint
documented as no-op in fhs-mapping.md: the overlayfs kernel layer
requires upperdir and workdir to share a filesystem, and the boot
hint is part of the U-Boot handshake.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-23 16:02:59 -03:00
Douglas Teles c542304146 New architecture release 2026-03-18 17:32:41 -03:00
John Williams 29b56dad8f mkimage / fs-resize - mke2fs - ext4 usage type 2025-10-09 11:28:38 +11:00
Christian Hewitt 3c14169447 busybox: remove vfd-clock as superseded with tm16xx support
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-06-26 08:55:53 +00:00
Christian Hewitt 4d808de579 busybox: unbrand and simplify the sudo warning
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-29 08:48:11 +00:00
Peter 89ba294806 init: update also md5 files on /flash 2025-05-17 16:46:51 +02:00
Christian Hewitt 868b16b46e treewide: unbrand LIBREELEC_ARCH to DISTRO_ARCH
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Matthias Reichl aa46dfbaa5 init: don't set consolefont
Signed-off-by: Matthias Reichl <hias@horus.com>
2025-02-13 18:08:55 +01:00
luzpaz 91a4766cef treewide: fix typos
Found via `codespell -q 3 -S "*.patch,*.po" -L acount,afile,distroname,parm,serie,synopsys`
2025-02-03 07:04:59 -05:00
CvH 67dcda694b cleanup scripts: packages/ 2024-07-06 13:02:07 +02:00
CvH 32d0c73d64 Merge pull request #8793 from antonlacon/rpi-flash-firmware
busybox: init: remove rpi firmware upgrade handling
2024-05-01 21:05:09 +02:00
Matthias Reichl c388eee81b busybox: use mke2fs instead of resize2fs
This ensures the /storage filesystem will have the correct options
(block size, inode_ratio etc) for the target partition size.

Signed-off-by: Matthias Reichl <hias@horus.com>
2024-04-18 17:41:44 +02:00
Ian Leonard 58a32016a4 busybox: init: remove rpi firmware upgrade handling
The settings addon no longer creates the trigger file that would activate
these functions. They're not necessary and we instead rely on RPi's
bootloader to do the right thing when presented with flash upgrade files.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2024-04-06 15:24:35 -04:00
CvH f2286fe9ce Merge pull request #8759 from chewitt/amlogic-upstream
amlogic: bump to Linux 6.8.y and prepare for u-boot 2024.04 plus misc bits
2024-03-26 12:23:36 +01:00
Peter Tuschy a43c069a2a busybox: init: fix toram when SYSTEM_IMAGE is with path
For the SYSTEM copy to /dev always use /dev/SYSTEM as target name
to not deal with fancy path or filenames.
Thanks HiassofT for clearing it up for me why that is best.
As far as i can tell all the rest of init is fine with BOOT_IMAGE and
SYSTEM_IMAGE having slashes in there.
Just toram was broken.
2024-03-25 13:09:38 +01:00
Christian Hewitt 94954d7751 busybox: add Amlogic getedid script
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2024-03-24 14:59:19 +00:00
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