Browse Source

fix kickstart *crossed fingers* and add ci builder script

website
axk4545 7 years ago
parent
commit
7b9f1c0a5f
2 changed files with 36 additions and 12 deletions
  1. +22
    -0
      ci-build.sh
  2. +14
    -12
      tigeros.ks

+ 22
- 0
ci-build.sh View File

@ -0,0 +1,22 @@
#!/bin/bash
set -eu
#####################################################################
# TigerOS Build Script for running on the build box with Jenkins CI #
# @author: Aidan Kahrs #
# #
# Usage: sudo bash build.sh #
# #
#####################################################################
wget https://raw.githubusercontent.com/RITlug/TigerOS/master/tigeros.ks
mock -r fedora-25-x86_64 --init
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 --chroot "svn export https://github.com/RITlug/TigerOS/trunk/scripts/"
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 /srv/isos/TigerOS.iso
rm -rf /var/lmc/
cd /srv/isos/
sha512sum *.iso >CHECKSUM512

+ 14
- 12
tigeros.ks View File

@ -295,7 +295,7 @@ echo 'File created by kickstart. See systemd-update-done.service(8).' \
# Drop the rescue kernel and initramfs, we don't need them on the live media itself. # Drop the rescue kernel and initramfs, we don't need them on the live media itself.
# See bug 1317709 # See bug 1317709
rm -f /boot/*-rescue*
rm -f /boot/\*-rescue*
# Disable network service here, as doing it in the services line # Disable network service here, as doing it in the services line
# fails due to RHBZ #1369794 # fails due to RHBZ #1369794
@ -308,7 +308,7 @@ touch /etc/machine-id
%end %end
%post --nochroot %post --nochroot
cp $INSTALL_ROOT/usr/share/licenses/*-release/* $LIVE_ROOT/
cp $INSTALL_ROOT/usr/share/licenses/\*-release/\* $LIVE_ROOT/
# only works on x86, x86_64 # only works on x86, x86_64
if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
@ -319,6 +319,7 @@ fi
%end %end
%post %post
# THIS IS ALL RUN IN THE LIVE ROOT
# cinnamon configuration # cinnamon configuration
# create /etc/sysconfig/desktop (needed for installation) # create /etc/sysconfig/desktop (needed for installation)
@ -351,7 +352,8 @@ chown -R liveuser:liveuser /home/liveuser
restorecon -R /home/liveuser restorecon -R /home/liveuser
EOF EOF
%end
%post --nochroot
# go to the backgrounds folder for custom images # go to the backgrounds folder for custom images
cd /usr/share/backgrounds/images cd /usr/share/backgrounds/images
@ -359,19 +361,19 @@ cd /usr/share/backgrounds/images
FIXME FIXME
# Fetch rpm fusion scripts # Fetch rpm fusion scripts
mkdir -p /usr/share/autostart
mkdir -p /usr/local/tigeros
cp -R /scripts/ /mnt/sysimage/usr/local/tigeros/
mkdir -p $INSTALL_ROOT/usr/share/autostart
mkdir -p $INSTALLROOT/usr/local/tigeros
cp -R /scripts/ $INSTALL_ROOT/usr/local/tigeros/
cp /home/liveuser/enablerpmfusion.sh /usr/share/autostart/enablerpmfusion.sh
ln -s /mnt/sysimage/usr/local/tigeros/FusionEnableLauncher.py /mnt/sysimage/usr/share/autostart/FusionEnableLauncher.py
ln -s /mnt/sysimage/usr/local/tigeros/postinstall /mnt/sysimage/usr/share/autostart/postinstall
ln -s $INSTALL_ROOT/home/liveuser/enablerpmfusion.sh $INSTALL_ROOT/usr/share/autostart/enablerpmfusion.sh
ln -s $INSTALL_ROOT/usr/local/tigeros/FusionEnableLauncher.py $INSTALL_ROOT/usr/share/autostart/FusionEnableLauncher.py
ln -s $INSTALL_ROOT/usr/local/tigeros/postinstall $INSTALL_ROOT/usr/share/autostart/postinstall
chmod -R a+rwx /mnt/sysimage/usr/local/tigeros/
chmod -R a+rwx $INSTALL_ROOT/usr/local/tigeros/
# Download and install google chrome # Download and install google chrome
dnf install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
restorecon -R /home/liveuser
dnf --installroot=$INSTALL_ROOT install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
restorecon -R $INSTALL_ROOT/home/liveuser
%end %end
%packages %packages

Loading…
Cancel
Save