This repository was archived by the owner on Oct 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmake-iso.sh
More file actions
35 lines (33 loc) · 1.46 KB
/
make-iso.sh
File metadata and controls
35 lines (33 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -eu
####################################################################
# TigerOS Build Script #
# @author: Aidan Kahrs #
# #
# Usage: sudo bash make-iso.sh #
# #
####################################################################
green=`tput setaf 2`
reset=`tput sgr0`
vers=28
result_dir=/var/lmc/TigerOS
#to use mock comment out lines 25, $vers and 30 and uncomment all lines beginning with mock
echo "${green}Welcome to the TigerOS build script${reset}"
# Check that the current user is root
if [ $EUID != 0 ]
then
echo "Please run this script as root (sudo $@$0)."
exit
fi
# /var/lmc/TigerOS cannot exist before building
if [ -d $result_dir ]
then
rm -rf $result_dir
fi
dnf install -y lorax-lmc-novirt git vim-minimal pykickstart
dnf install -y https://mirrors.ritlug.com/TigerOS/$vers/packages/x86_64/anaconda-installclass-tigeros-$vers-1.fc$vers.x86_64.rpm
echo "${green}Beginning build process${reset}"
setenforce 0
livemedia-creator --ks kickstarts/tigeros.ks --no-virt --resultdir $result_dir --project TigerOS-Live --make-iso --volid TigerOS --iso-only --iso-name TigerOS.iso --releasever $vers --title TigerOS-live --macboot
echo "${green}ISO saved to $result_dir/TigerOS.iso${reset}"
setenforce 1