Merge pull request #431 from liangxianlong/2.0-dev

rootfs-builder: Don't modify /sbin/init on the build host
This commit is contained in:
Peng Tao
2020-07-28 20:06:45 +08:00
committed by GitHub

View File

@@ -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
}