Add Zero-OS customization before CPIO creation
- Add initramfs_finalize_customization() function - Remove root password for passwordless login (sed -i 's/^root:[^:]*:/root::/' /etc/passwd) - Update /etc/motd and /etc/issue to Zero-OS branding instead of Alpine - Called automatically before CPIO creation - Fixes init script duplication issue (/init vs /sbin/init) - Correct boot flow: /init → switch_root → /sbin/zinit init (no /sbin/init needed)
This commit is contained in:
@@ -112,6 +112,6 @@ fi
|
||||
|
||||
echo "[+] switching root"
|
||||
echo " exec switch_root /mnt/root /sbin/zinit init"
|
||||
exec switch_root /mnt/root /sbin/zinit init
|
||||
exec switch_root /mnt/root /sbin/zinit -d init
|
||||
|
||||
##
|
||||
@@ -1,2 +0,0 @@
|
||||
exec: sh /etc/zinit/init/cgroup.sh
|
||||
oneshot: true
|
||||
@@ -1,5 +0,0 @@
|
||||
exec: sh /etc/zinit/init/stage1-modules.sh
|
||||
oneshot: true
|
||||
after:
|
||||
- udevd
|
||||
test: /etc/zinit/init/stage1-modules.sh
|
||||
@@ -1,6 +0,0 @@
|
||||
exec: sh /etc/zinit/init/stage2-modules.sh
|
||||
oneshot: true
|
||||
after:
|
||||
- stage1-modules
|
||||
- network
|
||||
test: /etc/zinit/init/stage2-modules.sh
|
||||
Reference in New Issue
Block a user