feat: split About view into separate app; bump ramdisk in-memory file limit
This commit is contained in:
1 parent
b8085e0e2a
commit
6665750528
13 files changed
+205
-70
No files matched your search
@@ -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)"
|
||||
Reference in new issue
Block a user