rootfs-builder: Don't modify /sbin/init on the build host
Don't modify /sbin/init on the build host when using command `AGENT_INIT="yes" ./rootfs.sh centos` to build rootfs.
Fixes:
@@ -660,7 +660,6 @@ main()
{
parse_arguments $*
check_env_variables
- init="${ROOTFS_DIR}/sbin/init"
if [ -n "$distro" ]; then
build_rootfs_distro
@@ -673,6 +672,7 @@ main()
prepare_overlay
fi
+ init="${ROOTFS_DIR}/sbin/init"
setup_rootfs
}
