mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 23:38:31 +00:00
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: #430 Signed-off-by: liangxianlong <liang.xianlong@zte.com.cn>
This commit is contained in:
parent
c5c3f5c31d
commit
7bbb9e8122
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user