From 034021a0175190583128a5c3cc04b826d122ba70 Mon Sep 17 00:00:00 2001 From: axk4545 Date: Tue, 16 May 2017 12:29:59 -0400 Subject: [PATCH] actually add SRPM this time, also add ks for source isos --- packages/tigeros-scripts-1.0-2.fc25.src.rpm | Bin 0 -> 10355 bytes tigeros-source.ks | 447 ++++++++++++++++++++ 2 files changed, 447 insertions(+) create mode 100644 packages/tigeros-scripts-1.0-2.fc25.src.rpm create mode 100644 tigeros-source.ks diff --git a/packages/tigeros-scripts-1.0-2.fc25.src.rpm b/packages/tigeros-scripts-1.0-2.fc25.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..207274888ef0cad1dc1bc4a1e45c09a62194b83e GIT binary patch literal 10355 zcmeI0c{J4T|M$m8wv?@8-?waoF$}Vc>}!!NvtVL|%-EIeBw14S2o17EO3IS#WUqvh zwJ0G=VVL_ppXPJl_xYalJNNzj>-SIBIoJDnJ+A9@E$`R+J#%KBs}(<{Xh9$v5Dfw2 ziT3x!%i)p!7(W7DPEj5rrzG!zR8j%`{}vh$-G7GOuKG$t?PCCeSnYte7EtMdwgI55 zz}Cn9FmMIYC<2uQXdM012F?Yd{R;3AfSoA;0IvWF%%{2hCx-U>9|orZ3am%F1}G2@ zE&-GhzfK)51A$ob5^3a*fM^&%r|H0sJZ_?FeEt}MPk^V6C)OR~BaigOf|wXtH^Wnl z<$@JhYik)mF^@yEu%fz#BI$3REb7w4pv%(l-JOTjG|67b@H=Jrv-#jiv?zdwxAhj(@%WSj7!g{z;< z_)3miVfkHKZ?_%crRBI4uqIY)p&=vKA(c`3y1vt+s*d{+F|;B_9Zx5{`EjPn+R%cI z9>dpR_WB46iEvkjz}1wLl@$?46_^qNp@wi*QBhL#P(mS9psFZEI2;8-07(XcxMcoY z`K1%0C$UHuZ0tQPO^mapo7OJLp-Up9wSeig5Ie{6Z%$V&$>_ngh~?drC2!RE+>*08 zD`7%XE`lL1*AVVLY<8N@L( zj4%8iT*R6|?~ByzzLEg6nCqGo=;~x~_T!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OS-YW<`_@6M}Q?nPga3n0l;3C8mJg_(Hyf$6<;vmc#VTQIYC z;5P*`cdMzcCmqbbC^Q|=elt*a3 z{@CG#%?OF`UjE+^6$v|wq*f{3S zHbPS;?8`gN=f92`-P7Pyw$@CDD$%~7BMCfm2t@UuA4Z4T@N}h-;STXX1n`50b!bt{)=dWnz9B)=S z=m=eAqTku1RwKFq?UUBVJoP~H&b50=1%sI-;EMaW0ccV86J8G>cJpMM>%qO8u z;YVDxAh+Ir{KV_C+Hg(bvw?E-TMS(quXGsIBy}PPA05+km2?=xFZR&tEB2%^5m(Ba zxj9-{OWiHs<3~kgOgE>)%tkPtz7)cGr@)LbN069^ON%99Lu4+ zmMfMydwQ!&?YUbhKbA_|P_+undHw07R<|xa)#dr#=EY-!fh=q;((%2OMWym5e3H70 z7?zZ{9Sx0)o_e*TZu#T8gMA(it=m4Xew~r+Ts%2Y7P8XprrbK*GqvDyGIjxW_1q6w zsL^1|v+$M|*FY(V`^Ej+yp0_t(GIMPwFX^gx6a(^v+wiG;h3ny?5S-W;o94e`Jmri(01&EPP;6l?3k&D)mvlM zWOgSxp-#BFvvhl?idZt7KgZK;W$6(_;+sPuzce8zyP!!Kp5J`$RXmdZE-RRKe{;2R&-?bI7KrfV4mQ+jkpOM#$A~3zZ!E}*(B07 z5;kJ53!2??)H zw_*~=i?fWT9Zp9{mviA>L| /etc/rc.d/init.d/livesys << EOF +#!/bin/bash +# +# live: Init script for live image +# +# chkconfig: 345 00 99 +# description: Init script for live image. +### BEGIN INIT INFO +# X-Start-Before: display-manager chronyd +### END INIT INFO + +. /etc/init.d/functions + +if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ]; then + exit 0 +fi + +if [ -e /.liveimg-configured ] ; then + configdone=1 +fi + +exists() { + which \$1 >/dev/null 2>&1 || return + \$* +} + +livedir="LiveOS" +for arg in \`cat /proc/cmdline\` ; do + if [ "\${arg##rd.live.dir=}" != "\${arg}" ]; then + livedir=\${arg##rd.live.dir=} + return + fi + if [ "\${arg##live_dir=}" != "\${arg}" ]; then + livedir=\${arg##live_dir=} + return + fi +done + +# enable swaps unless requested otherwise +swaps=\`blkid -t TYPE=swap -o device\` +if ! strstr "\`cat /proc/cmdline\`" noswap && [ -n "\$swaps" ] ; then + for s in \$swaps ; do + action "Enabling swap partition \$s" swapon \$s + done +fi +if ! strstr "\`cat /proc/cmdline\`" noswap && [ -f /run/initramfs/live/\${livedir}/swap.img ] ; then + action "Enabling swap file" swapon /run/initramfs/live/\${livedir}/swap.img +fi + +mountPersistentHome() { + # support label/uuid + if [ "\${homedev##LABEL=}" != "\${homedev}" -o "\${homedev##UUID=}" != "\${homedev}" ]; then + homedev=\`/sbin/blkid -o device -t "\$homedev"\` + fi + + # if we're given a file rather than a blockdev, loopback it + if [ "\${homedev##mtd}" != "\${homedev}" ]; then + # mtd devs don't have a block device but get magic-mounted with -t jffs2 + mountopts="-t jffs2" + elif [ ! -b "\$homedev" ]; then + loopdev=\`losetup -f\` + if [ "\${homedev##/run/initramfs/live}" != "\${homedev}" ]; then + action "Remounting live store r/w" mount -o remount,rw /run/initramfs/live + fi + losetup \$loopdev \$homedev + homedev=\$loopdev + fi + + # if it's encrypted, we need to unlock it + if [ "\$(/sbin/blkid -s TYPE -o value \$homedev 2>/dev/null)" = "crypto_LUKS" ]; then + echo + echo "Setting up encrypted /home device" + plymouth ask-for-password --command="cryptsetup luksOpen \$homedev EncHome" + homedev=/dev/mapper/EncHome + fi + + # and finally do the mount + mount \$mountopts \$homedev /home + # if we have /home under what's passed for persistent home, then + # we should make that the real /home. useful for mtd device on olpc + if [ -d /home/home ]; then mount --bind /home/home /home ; fi + [ -x /sbin/restorecon ] && /sbin/restorecon /home + if [ -d /home/liveuser ]; then USERADDARGS="-M" ; fi +} + +findPersistentHome() { + for arg in \`cat /proc/cmdline\` ; do + if [ "\${arg##persistenthome=}" != "\${arg}" ]; then + homedev=\${arg##persistenthome=} + return + fi + done +} + +if strstr "\`cat /proc/cmdline\`" persistenthome= ; then + findPersistentHome +elif [ -e /run/initramfs/live/\${livedir}/home.img ]; then + homedev=/run/initramfs/live/\${livedir}/home.img +fi + +# if we have a persistent /home, then we want to go ahead and mount it +if ! strstr "\`cat /proc/cmdline\`" nopersistenthome && [ -n "\$homedev" ] ; then + action "Mounting persistent /home" mountPersistentHome +fi + +if [ -n "\$configdone" ]; then + exit 0 +fi + +# add fedora user with no passwd +action "Adding live user" useradd \$USERADDARGS -c "Live System User" liveuser +passwd -d liveuser > /dev/null +usermod -aG wheel liveuser > /dev/null + +# Remove root password lock +passwd -d root > /dev/null + +# turn off firstboot for livecd boots +systemctl --no-reload disable firstboot-text.service 2> /dev/null || : +systemctl --no-reload disable firstboot-graphical.service 2> /dev/null || : +systemctl stop firstboot-text.service 2> /dev/null || : +systemctl stop firstboot-graphical.service 2> /dev/null || : + +# don't use prelink on a running live image +sed -i 's/PRELINKING=yes/PRELINKING=no/' /etc/sysconfig/prelink &>/dev/null || : + +# turn off mdmonitor by default +systemctl --no-reload disable mdmonitor.service 2> /dev/null || : +systemctl --no-reload disable mdmonitor-takeover.service 2> /dev/null || : +systemctl stop mdmonitor.service 2> /dev/null || : +systemctl stop mdmonitor-takeover.service 2> /dev/null || : + +# don't enable the gnome-settings-daemon packagekit plugin +gsettings set org.gnome.software download-updates 'false' || : + +# don't start cron/at as they tend to spawn things which are +# disk intensive that are painful on a live image +systemctl --no-reload disable crond.service 2> /dev/null || : +systemctl --no-reload disable atd.service 2> /dev/null || : +systemctl stop crond.service 2> /dev/null || : +systemctl stop atd.service 2> /dev/null || : + +# Don't sync the system clock when running live (RHBZ #1018162) +sed -i 's/rtcsync//' /etc/chrony.conf + +# Mark things as configured +touch /.liveimg-configured + +# add static hostname to work around xauth bug +# https://bugzilla.redhat.com/show_bug.cgi?id=679486 +# the hostname must be something else than 'localhost' +# https://bugzilla.redhat.com/show_bug.cgi?id=1370222 +echo "localhost-live" > /etc/hostname + +EOF + +# bah, hal starts way too late +cat > /etc/rc.d/init.d/livesys-late << EOF +#!/bin/bash +# +# live: Late init script for live image +# +# chkconfig: 345 99 01 +# description: Late init script for live image. + +. /etc/init.d/functions + +if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then + exit 0 +fi + +exists() { + which \$1 >/dev/null 2>&1 || return + \$* +} + +touch /.liveimg-late-configured + +# read some variables out of /proc/cmdline +for o in \`cat /proc/cmdline\` ; do + case \$o in + ks=*) + ks="--kickstart=\${o#ks=}" + ;; + xdriver=*) + xdriver="\${o#xdriver=}" + ;; + esac +done + +# if liveinst or textinst is given, start anaconda +if strstr "\`cat /proc/cmdline\`" liveinst ; then + plymouth --quit + /usr/sbin/liveinst \$ks +fi +if strstr "\`cat /proc/cmdline\`" textinst ; then + plymouth --quit + /usr/sbin/liveinst --text \$ks +fi + +# configure X, allowing user to override xdriver +if [ -n "\$xdriver" ]; then + cat > /etc/X11/xorg.conf.d/00-xdriver.conf <> /etc/fstab << EOF +vartmp /var/tmp tmpfs defaults 0 0 +EOF + +# work around for poor key import UI in PackageKit +rm -f /var/lib/rpm/__db* +releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release) +basearch=$(uname -i) +rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +echo "Packages within this LiveCD" +rpm -qa +# Note that running rpm recreates the rpm db files which aren't needed or wanted +rm -f /var/lib/rpm/__db* + +# go ahead and pre-make the man -k cache (#455968) +/usr/bin/mandb + +# make sure there aren't core files lying around +rm -f /core* + +# remove random seed, the newly installed instance should make it's own +rm -f /var/lib/systemd/random-seed + +# convince readahead not to collect +# FIXME: for systemd + +echo 'File created by kickstart. See systemd-update-done.service(8).' \ + | tee /etc/.updated >/var/.updated + +# Drop the rescue kernel and initramfs, we don't need them on the live media itself. +# See bug 1317709 +rm -f /boot/*-rescue* + +# Disable network service here, as doing it in the services line +# fails due to RHBZ #1369794 +/sbin/chkconfig network off + +# Remove machine-id on pre generated images +rm -f /etc/machine-id +touch /etc/machine-id + +%end + +%post --nochroot +cp $INSTALL_ROOT/usr/share/licenses/*-release/* $LIVE_ROOT/ + +# only works on x86, x86_64 +if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then + if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi + cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS +fi + +%end + +%post +# cinnamon configuration + +# create /etc/sysconfig/desktop (needed for installation) + +cat > /etc/sysconfig/desktop <> /etc/rc.d/init.d/livesys << EOF + +# set up lightdm autologin +sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf +sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf +#sed -i 's/^#show-language-selector=.*/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf + +# set Cinnamon as default session, otherwise login will fail +sed -i 's/^#user-session=.*/user-session=cinnamon/' /etc/lightdm/lightdm.conf + +# Show harddisk install on the desktop +sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop +mkdir /home/liveuser/Desktop +cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop + +# and mark it as executable +chmod +x /home/liveuser/Desktop/liveinst.desktop + +# this goes at the end after all other changes. +chown -R liveuser:liveuser /home/liveuser +restorecon -R /home/liveuser + +EOF + +# TigerOS specific setup +chmod +x /usr/local/bin/\* +gsettings set org.cinnamon.desktop.background picture-filename "file:///usr/share/backgrounds/tigeros/wallpaper2-1920x1080.jpg" +restorecon -R /usr/local/bin +%end + +%packages +@anaconda-tools +@base-x +@cinnamon-desktop +@core +@dial-up +@fonts +@guest-desktop-agents +@hardware-support +@input-methods +@libreoffice +@multimedia +@networkmanager-submodules +@printing +@standard +aajohan-comfortaa-fonts +anaconda +desktop-backgrounds-basic +dracut-live +f24-backgrounds-extras-gnome +generic-release-notes +gimp +glibc-all-langpacks +#remove chrome until we verify licensing +#google-chrome-stable +grub2-efi +gscreenshot +hexchat +htop +inkscape +kernel +kernel-modules +kernel-modules-extra +lynx +memtest86+ +parole +pidgin +rhythmbox +rpmfusion-free-release +scrot +syslinux +tigeros-backgrounds +tigeros-ff-profile +tigeros-logos +tigeros-release +tigeros-repos +tigeros-scripts +transmission +vim +wget +yumex-dnf +zsh +#exclude things (packagekit breaks things, fedora-* packages are replaced by ones we customized.) +-PackageKit* +-autofs +-coolkey +-fedora-bookmarks +-fedora-icon-theme +-fedora-logos +-fedora-release +-fedora-release-notes +-gnome-screenshot +-hplip +-isdn4k-utils +-mpage +-numactl +-policycoreutils-gui +-sane-backends +-sox +-system-config-boot +-system-config-language +-system-config-network +-system-config-rootpassword +-system-config-services +-xsane +-xsane-gimp + +%end