feat: split About view into separate app; bump ramdisk in-memory file limit

This commit is contained in:
daniel committed 2026-11-11 15:24:05 +01:00
1 parent b8085e0e2a
commit 6665750528
13 files changed
+205 -70

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ APPS=(
"display|apps/scalable/preferences-desktop-display.svg"
"capabilities|apps/scalable/stock_lock.svg"
"keyboard|categories/scalable/preferences-keyboard.svg"
"about|categories/scalable/help-about.svg"
"sshserver|apps/scalable/utilities-terminal.svg"
"terminal|apps/scalable/utilities-terminal.svg"
"syslog|apps/scalable/utilities-terminal.svg"
+11
View File
@@ -28,4 +28,15 @@ if tar -tvf "$OUTPUT_PATH" | grep -q '^l'; then
exit 1
fi
# The kernel's ramdisk file table is fixed-size (MaxFiles in
# kernel/src/Fs/Ramdisk.hpp). Entries past it are dropped, and an image that
# only just fits leaves no slots for files created at runtime (users.toml!).
MAX_FILES=$(sed -n 's/.*constexpr int MaxFiles = \([0-9]*\);.*/\1/p' \
"$(dirname "$0")/../kernel/src/Fs/Ramdisk.hpp")
ENTRIES=$(tar -tf "$OUTPUT_PATH" | wc -l)
if [ -n "$MAX_FILES" ] && [ "$ENTRIES" -gt $((MAX_FILES - 512)) ]; then
echo "mkramdisk: ERROR: $ENTRIES entries leaves under 512 free of the kernel's $MAX_FILES ramdisk slots; raise MaxFiles" >&2
exit 1
fi
echo "mkramdisk: created $OUTPUT_PATH from $INPUT_DIR ($(wc -c < "$OUTPUT_PATH") bytes)"