Run /preinit before init

This commit is contained in:
Rodrigo Arias 2024-09-05 14:57:54 +02:00
parent ee9ecac8ed
commit 4f70ac11ac

View File

@ -477,7 +477,7 @@
cat > $out <<EOF cat > $out <<EOF
git_commit=${rev} git_commit=${rev}
xtrace=yes xtrace=yes
bootargs=root=/dev/ram0 loglevel=7 rw earlycon=sbi console=hvc0 debug1 init=${init} bootargs=root=/dev/ram0 loglevel=7 rw earlycon=sbi console=hvc0 debug1 rdinit=/preinit init=${init}
ramdisk_size=$(stat --format %s $(readlink -f ${initrd})) ramdisk_size=$(stat --format %s $(readlink -f ${initrd}))
bootcmd=fdt print; booti \''${kernel_addr_r} \''${ramdisk_addr_r}:\''${ramdisk_size} \''${fdtcontroladdr} bootcmd=fdt print; booti \''${kernel_addr_r} \''${ramdisk_addr_r}:\''${ramdisk_size} \''${fdtcontroladdr}
EOF EOF