1
0
mirror of https://github.com/rancher/os.git synced 2025-06-22 13:07:04 +00:00
os/scripts/gen-os-config.sh
Wang Long e074038775 fix gen-os-config.sh error
Need to source build.conf.${ARCH} file when we generate os-config.yml
after the pr(https://github.com/rancher/os/pull/815) merged.

this patch fix it.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
2016-03-22 14:15:30 +08:00

15 lines
199 B
Bash
Executable File

#!/bin/bash
set -ex
cd $(dirname $0)/..
set -a
. build.conf
. build.conf.${ARCH}
SUFFIX=""
[ "${ARCH}" == "amd64" ] || SUFFIX="_${ARCH}"
set +a
build/host_ros c generate < os-config.tpl.yml > $1