1
0
mirror of https://github.com/rancher/os.git synced 2025-05-01 04:44:06 +00:00
os/scripts/layout
2018-11-05 14:34:15 +08:00

18 lines
318 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
curl -sL ${!OS_INITRD_BASE_URL} | tar xzvf - -C ${INITRD_DIR}
./scripts/hash-initrd