1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

Use os-initrd-base instead of DFS_IMAGE

This commit is contained in:
niusmallnan
2018-11-05 13:00:40 +08:00
committed by niusmallnan
parent 922fd63f61
commit 971f295092
2 changed files with 7 additions and 11 deletions

View File

@@ -12,13 +12,6 @@ export ARTIFACTS BUILD INITRD_DIR VERSION
./scripts/layout-initrd
./scripts/layout-kernel
DFS_ARCH=$(docker create ${DFS_IMAGE}${SUFFIX})
trap "docker rm -fv ${DFS_ARCH} >/dev/null" EXIT
docker export ${DFS_ARCH} | tar xf - -C ${INITRD_DIR} --exclude=usr/bin/docker* \
--exclude=usr/share/git-core \
--exclude=usr/bin/git \
--exclude=usr/bin/ssh \
--exclude=usr/libexec \
usr
curl -sL ${!OS_INITRD_BASE_URL} | tar xzvf - -C ${INITRD_DIR}
./scripts/hash-initrd