Fedora Remix maintained by the Rochester Institute of Technology (RIT) Linux Users Group, targeted at users new to Linux and RIT students, faculty, and staff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.0 KiB

7 years ago
7 years ago
  1. #!/bin/bash
  2. set -eu
  3. #####################################################################
  4. # TigerOS Build Script for running on the build box with Jenkins CI #
  5. # @author: Aidan Kahrs #
  6. # #
  7. # Usage: sudo bash ci-build.sh #
  8. # #
  9. #####################################################################
  10. # Check that the current user is root
  11. if [ $EUID != 0 ]
  12. then
  13. echo "Please run this script as root (sudo $@$0)."
  14. exit
  15. fi
  16. rm -rf tigeros.ks
  17. wget -O tigeros.ks https://raw.githubusercontent.com/RITlug/TigerOS/master/tigeros.ks
  18. 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
  19. cp -f /var/lmc/TigerOS.iso /srv/isos/
  20. rm -rf /var/lmc/
  21. cd /srv/isos
  22. sha512sum *.iso > CHECKSUM512
  23. cd /home/build
  24. rm -rf anaconda/ *.log