Browse Source

add selinux and sudo check

website
axk4545 7 years ago
parent
commit
c176233616
2 changed files with 10 additions and 0 deletions
  1. +2
    -0
      ci-build.sh
  2. +8
    -0
      make-iso.sh

+ 2
- 0
ci-build.sh View File

@ -14,6 +14,7 @@ then
echo "Please run this script as root (sudo $@$0)." echo "Please run this script as root (sudo $@$0)."
exit exit
fi fi
setenforce 0
rm -rf tigeros.ks rm -rf tigeros.ks
wget -O tigeros.ks https://raw.githubusercontent.com/RITlug/TigerOS/master/tigeros.ks wget -O tigeros.ks https://raw.githubusercontent.com/RITlug/TigerOS/master/tigeros.ks
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 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,3 +24,4 @@ cd /srv/isos
sha512sum *.iso > CHECKSUM512 sha512sum *.iso > CHECKSUM512
cd /home/build cd /home/build
rm -rf anaconda/ *.log rm -rf anaconda/ *.log
setenforce 1

+ 8
- 0
make-iso.sh View File

@ -12,12 +12,20 @@ green=`tput setaf 2`
reset=`tput sgr0` reset=`tput sgr0`
echo "${green}Welcome to the TigerOS build script${reset}" 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
#mock -r fedora-25-x86_64 --init #mock -r fedora-25-x86_64 --init
#mock -r fedora-25-x86_64 --copyin tigeros.ks ./tigeros.ks #mock -r fedora-25-x86_64 --copyin tigeros.ks ./tigeros.ks
#mock -r fedora-25-x86_64 --install lorax-lmc-novirt git vim-minimal pykickstart svn #mock -r fedora-25-x86_64 --install lorax-lmc-novirt git vim-minimal pykickstart svn
#mock -r fedora-25-x86_64 --chroot "svn export https://github.com/RITlug/TigerOS/trunk/scripts/" #mock -r fedora-25-x86_64 --chroot "svn export https://github.com/RITlug/TigerOS/trunk/scripts/"
echo "${green}Beginning build process${reset}" echo "${green}Beginning build process${reset}"
setenforce 0
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 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 --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 --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 #mock -r fedora-25-x86_64 --copyout /var/lmc/TigerOS.iso TigerOS.iso
echo "${green}ISO saved to $(pwd)/TigerOS.iso${reset}" echo "${green}ISO saved to $(pwd)/TigerOS.iso${reset}"
setenforce 1

Loading…
Cancel
Save