sync: apply remote flist fallback, passwordless root finalize, path normalization, INITRAMFS_ARCHIVE guard, /home ensure, and notes
Some checks failed
Build Zero OS Initramfs / build (push) Has been cancelled
Build Zero OS Initramfs / test-matrix (qemu, basic) (push) Has been cancelled
Build Zero OS Initramfs / test-matrix (qemu, serial) (push) Has been cancelled

This commit is contained in:
2025-09-09 21:24:28 +02:00
parent 16955ea84f
commit fe8c48a862
9 changed files with 228 additions and 8 deletions

View File

@@ -111,7 +111,8 @@ if [ -e /init-debug ]; then
fi
echo "[+] switching root"
mkdir /root/home
echo " exec switch_root /mnt/root /sbin/zinit init"
exec switch_root /mnt/root /sbin/zinit init
##
##

View File

@@ -15,6 +15,7 @@ eudev-hwids
eudev-libs
eudev-netifnames
kmod
fuse3
# Console/terminal management
util-linux

View File

@@ -1 +1,2 @@
exec: depmod -a
exec: depmod -a
oneshot: true

View File

@@ -1,2 +0,0 @@
exec: /bin/sh
restart: always

View File

@@ -2,7 +2,7 @@
set -e
# Ensure dhcpcd user/group exist (some builds expect to drop privileges)
if ! getent group dhcpcd >/dev/null 2>&1; then addgroup -S dhcpcd 2>/dev/null || true; fi
if ! getent passwd dhcpcd >/dev/null 2>&1; then adduser -S -H -D -s /sbin/nologin -G dhcpcd dhcpcd 2>/dev/null || true; fi
if ! getent passwd dhcpcd >/dev/null 2>&1; then adduser -S -D -s /sbin/nologin -G dhcpcd dhcpcd 2>/dev/null || true; fi
# Exec dhcpcd (will run as root if it cannot drop to dhcpcd user)
interfaces=$(ip -br l | awk '!/lo/&&!/my0/{print $1}')
exec dhcpcd $interfaces
exec dhcpcd -B $interfaces