1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 06:59:12 +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

@@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -x
source $(dirname $0)/version
cd $(dirname $0)/..
@@ -10,6 +11,7 @@ ISO=${ARTIFACTS}/$(echo ${DISTRIB_ID} | tr '[:upper:]' '[:lower:]').iso
CHECKSUM=iso-checksums.txt
mkdir -p ${CD}/boot/isolinux
mkdir -p ${CD}/rancheros
if [ ! -f ${ARTIFACTS}/vmlinuz ] || [ ! -f ${ARTIFACTS}/initrd ]; then
exit 0
@@ -20,6 +22,10 @@ cp ${ARTIFACTS}/vmlinuz ${CD}/boot
cp scripts/isolinux.cfg ${CD}/boot/isolinux
cp /usr/lib/ISOLINUX/isolinux.bin ${CD}/boot/isolinux
cp /usr/lib/syslinux/modules/bios/ldlinux.c32 ${CD}/boot/isolinux
# add the installer image to the iso for non-network / dev/test
cp ${ARTIFACTS}/installer.tar ${CD}/rancheros
cp assets/bootinfoscript ${CD}/rancheros
gzip ${CD}/rancheros/installer.tar
cd ${CD} && xorriso \
-as mkisofs \
-l -J -R -V "${DISTRIB_ID}" \