2015-08-05 20:58:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
. scripts/build-common
|
|
|
|
|
2015-08-06 07:04:46 +00:00
|
|
|
mkdir -p ${CD}/boot/isolinux
|
|
|
|
|
2015-08-05 20:58:32 +00:00
|
|
|
cp ${DIST}/artifacts/initrd ${CD}/boot
|
|
|
|
cp ${DIST}/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
|
|
|
|
cd ${CD} && xorriso \
|
|
|
|
-publisher "Rancher Labs, Inc." \
|
|
|
|
-as mkisofs \
|
|
|
|
-l -J -R -V "RancherOS" \
|
|
|
|
-no-emul-boot -boot-load-size 4 -boot-info-table \
|
|
|
|
-b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
|
|
|
|
-isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \
|
|
|
|
-o ${DIST}/artifacts/rancheros.iso ${CD}
|