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.

26 lines
1.2 KiB

  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. # check arguments
  13. if [ $# -ne 3 ]; then
  14. echo "Usage: sudo bash build.sh [RELEASE_VER] [BASE_ARCH] [BUILD_VER]"
  15. exit 1
  16. fi
  17. echo "${green}Welcome to the TigerOS build script${reset}"
  18. mock -r fedora-25-x86_64 --init
  19. mock -r fedora-25-x86_64 --copyin tigeros.ks
  20. mock -r fedora-25-x86_64 --install "lorax"
  21. echo "${green}Beginning build process${reset}"
  22. 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"
  23. mock -r fedora-25-x86_64 --copyout /var/lmc/TigerOS.iso TigerOS.iso
  24. echo "${green}ISO saved to $(pwd)/TigerOS.iso${reset}"