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.

31 lines
1.8 KiB

7 years ago
7 years ago
  1. #!/bin/bash
  2. set -eu
  3. ####################################################################
  4. # TigerOS Build Script #
  5. # @author: Aidan Kahrs #
  6. # #
  7. # Usage: sudo bash make-iso.sh #
  8. # #
  9. ####################################################################
  10. green=`tput setaf 2`
  11. reset=`tput sgr0`
  12. #to use mock comment out lines 25, 26 and 30 and uncomment all lines beginning with mock
  13. echo "${green}Welcome to the TigerOS build script${reset}"
  14. # Check that the current user is root
  15. if [ $EUID != 0 ]
  16. then
  17. echo "Please run this script as root (sudo $@$0)."
  18. exit
  19. fi
  20. mock --old-chroot -r fedora-26-x86_64 --init
  21. mock --old-chroot -r fedora-26-x86_64 --copyin tigeros.ks ./tigeros.ks
  22. mock --old-chroot -r fedora-26-x86_64 --install lorax-lmc-novirt git vim-minimal pykickstart
  23. mock --old-chroot -r fedora-26-x86_64 --install https://tigeros.ritlug.com/packages/x86_64/anaconda-installclass-tigeros-26-1.fc26.x86_64.rpm
  24. echo "${green}Beginning build process${reset}"
  25. #setenforce 0
  26. #livemedia-creator --ks tigeros.ks --no-virt --resultdir /var/lmc --project TigerOS-Live --make-iso --volid TigerOS --iso-only --iso-name TigerOS.iso --releasever 26 --title TigerOS-live --macboot
  27. mock --old-chroot -r fedora-26-x86_64 --chroot "livemedia-creator --ks tigeros.ks --no-virt --resultdir /var/lmc --project \"Fedora TigerOS-Live\" --make-iso --volid TigerOS --iso-only --iso-name TigerOS.iso --releasever 26 --title TigerOS-live --macboot"
  28. mock --old-chroot -r fedora-26-x86_64 --copyout /var/lmc/TigerOS.iso TigerOS.iso
  29. echo "${green}ISO saved to $(pwd)/TigerOS.iso${reset}"
  30. #setenforce 1