mirror of
https://github.com/rancher/os.git
synced 2025-06-20 12:11:56 +00:00
25 lines
846 B
Bash
Executable File
25 lines
846 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
source $(dirname $0)/version
|
|
cd $(dirname $0)/..
|
|
|
|
ARTIFACTS=$(pwd)/dist/artifacts
|
|
BUILD=build
|
|
INITRD_DIR=${BUILD}/initrd
|
|
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/git-core \
|
|
usr
|
|
|
|
./scripts/hash-initrd
|