initramfs: fix rootless perms for etc/zinit and add diagnostics

• Ensure host/rootless traversal for zinit configs: make etc/zinit and etc/zinit/init 755 prior to recursive normalization; then set dirs=755, files=644, and mark *.sh executable in [bash.initramfs_setup_zinit()](scripts/lib/initramfs.sh:12)

• Add pre-CPIO sanity logs to catch empty/mis-scoped archives: top-level ls, file count, and essential presence checks in [bash.initramfs_create_cpio()](scripts/lib/initramfs.sh:658)

• Add validation-time sanity snapshot of top-level and entry count in [bash.initramfs_validate()](scripts/lib/initramfs.sh:754)
This commit is contained in:
2025-09-09 11:32:08 +02:00
parent ae5eea5b2f
commit 8465f00590
5 changed files with 38 additions and 8 deletions

View File

@@ -1,3 +1,3 @@
Zero-OS \r \m
Built on \l
Welcome to Alpine Linux 3.22
Kernel \r on \m (\l)