diff --git a/README.md b/README.md index b4984b6..daac027 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,16 @@ TigerOS ## Instructions ### Setup -* Install lorax -``` - sudo dnf install lorax -``` * Clone this repo ``` git clone https://github.com/RITlug/TigerOS.git ``` ### Build the ISO -From the directory where you cloned this repo run the command below. You may need to preface it with `sudo` if you do not have root privileges. +From the directory where you cloned this repo run the commands below. You may need to preface it with `sudo` if you do not have root privileges. ``` -livemedia-creator --ks tigeros.ks --no-virt --resultdir /var/lmc --project TigerOS-Live --make-iso --volid TigerOS --iso-only --iso-name TigerOS.iso --releasever 25 --title TigerOS-live --macboot +chmod +x make-iso.sh +bash make-iso.sh ``` -The resulting iso will be in /var/lmc/ ## Authors diff --git a/make-iso.sh b/make-iso.sh new file mode 100644 index 0000000..cd35b75 --- /dev/null +++ b/make-iso.sh @@ -0,0 +1,26 @@ +#!/bin/bash +set -eu + +#################################################################### +# TigerOS Build Script # +# @author: Aidan Kahrs # +# # +# Usage: sudo bash make-iso.sh # +# # +#################################################################### +green=`tput setaf 2` +reset=`tput sgr0` + +# check arguments +if [ $# -ne 3 ]; then + echo "Usage: sudo bash build.sh [RELEASE_VER] [BASE_ARCH] [BUILD_VER]" + exit 1 +fi +echo "${green}Welcome to the TigerOS build script${reset}" +mock -r fedora-25-x86_64 --init +mock -r fedora-25-x86_64 --copyin tigeros.ks +mock -r fedora-25-x86_64 --install "lorax" +echo "${green}Beginning build process${reset}" +mock -r fedora-25-x86_64 --chroot "livemedia-creator --ks tigeros.ks --no-virt --resultdir /var/lmc --project TigerOS-Live --make-iso --volid TigerOS --iso-only --iso-name TigerOS.iso --releasever 25 --title TigerOS-live --macboot" +mock -r fedora-25-x86_64 --copyout /var/lmc/TigerOS.iso TigerOS.iso +echo "${green}ISO saved to $(pwd)/TigerOS.iso${reset}"