Browse Source

Merge pull request #7 from RITlug/devel

added iso creation script and update readme
website
Solomon 7 years ago
committed by GitHub
parent
commit
824206965b
2 changed files with 29 additions and 7 deletions
  1. +3
    -7
      README.md
  2. +26
    -0
      make-iso.sh

+ 3
- 7
README.md View File

@ -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

+ 26
- 0
make-iso.sh View File

@ -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}"

Loading…
Cancel
Save