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

Convert install script to go

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2016-12-01 13:55:19 +10:00
parent 80820e610a
commit 087bc6fd2d
15 changed files with 797 additions and 29 deletions

View File

@@ -12,6 +12,7 @@ while [ "$#" -gt 0 ]; do
BOOT_ISO=1
QEMU=0
QIND=0
REBUILD=0
;;
--append)
shift 1
@@ -59,7 +60,6 @@ while [ "$#" -gt 0 ]; do
FRESH=1
;;
--installed)
./scripts/create-installed
INSTALLED=1
;;
*)
@@ -107,7 +107,11 @@ if [ "$QEMU" == "1" ] || [ "$BOOT_ISO" == "1" ]; then
if [ ! -e ${HD} ]; then
mkdir -p $(dirname ${HD})
qemu-img create -f qcow2 -o size=10G ${HD}
if [ ¨$INSTALLED¨ == ¨1¨ ]; then
./scripts/create-installed
else
qemu-img create -f qcow2 -o size=10G ${HD}
fi
fi
if [ "$SECOND_DRIVE" == "1" ]; then