mirror of
https://github.com/rancher/os.git
synced 2025-09-04 08:14:21 +00:00
scripts/run: minor cleanup
This commit is contained in:
@@ -16,11 +16,11 @@ HD_GZ=${ARTIFACTS}/empty-hd.img.gz
|
|||||||
INITRD_TMP=${BUILD}/$(sha1sum ${INITRD} | awk '{print $1}')
|
INITRD_TMP=${BUILD}/$(sha1sum ${INITRD} | awk '{print $1}')
|
||||||
INITRD_CURRENT=${BUILD}/initrd-current
|
INITRD_CURRENT=${BUILD}/initrd-current
|
||||||
INITRD_TEST=${BUILD}/initrd.test
|
INITRD_TEST=${BUILD}/initrd.test
|
||||||
|
UNAME=$(uname)
|
||||||
USER_DATA=cloud-init/openstack/latest/user_data
|
USER_DATA=cloud-init/openstack/latest/user_data
|
||||||
|
|
||||||
# PREREQ: brew install coreutils
|
# PREREQ: brew install coreutils
|
||||||
path() {
|
path() {
|
||||||
local UNAME=$(uname)
|
|
||||||
if [ "$UNAME" == "Darwin" ]; then greadlink -f "$1"
|
if [ "$UNAME" == "Darwin" ]; then greadlink -f "$1"
|
||||||
elif [ "$UNAME" == "Linux" ]; then readlink -f "$1";
|
elif [ "$UNAME" == "Linux" ]; then readlink -f "$1";
|
||||||
fi
|
fi
|
||||||
@@ -92,8 +92,6 @@ else
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
UNAME=$(uname)
|
|
||||||
|
|
||||||
KERNEL_ARGS="quiet rancher.password=rancher console=ttyS0 ${QEMU_APPEND}"
|
KERNEL_ARGS="quiet rancher.password=rancher console=ttyS0 ${QEMU_APPEND}"
|
||||||
|
|
||||||
if [ "$UNAME" == "Darwin" ] && [ -x $(which xhyve) ]; then
|
if [ "$UNAME" == "Darwin" ] && [ -x $(which xhyve) ]; then
|
||||||
|
Reference in New Issue
Block a user