fedora: fc21: Added Fedora 21 template and related configurations

This commit is contained in:
Jason Mehring 2015-02-14 12:45:00 -05:00
parent 0b3eab8591
commit 96442c83cb
26 changed files with 492 additions and 27 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ mnt_*
*.img
install-templates.sh
yum_repo_qubes/*
scripts_fedora/base_rpms_fc21/*

View File

@ -0,0 +1 @@
gnome-terminal.desktop

View File

@ -0,0 +1,3 @@
gnome-terminal.desktop
nautilus.desktop
firefox.desktop

View File

@ -0,0 +1,5 @@
gnome-terminal.desktop
gpk-application.desktop
gpk-prefs.desktop
system-config-date.desktop
system-config-printer.desktop

View File

@ -0,0 +1 @@
xterm.desktop

View File

@ -0,0 +1 @@
xterm.desktop

View File

@ -0,0 +1 @@
xterm.desktop

View File

@ -5,6 +5,12 @@ if ! [ -f "${INSTALLDIR}/tmp/.prepared_base" ]; then
rpm --initdb --root=$INSTALLDIR
rpm --import --root=$INSTALLDIR $SCRIPTSDIR/keys/*
if [ "$DIST" == "fc21" ]; then
echo "-> Retreiving core RPM packages..."
INITIAL_PACKAGES="filesystem setup fedora-release"
yum --disablerepo=\* --enablerepo=fedora -y --installroot="${INSTALLDIR}" --releasever=${DIST/fc/} install --downloadonly --downloaddir="$SCRIPTSDIR/base_rpms_${DIST}" ${INITIAL_PACKAGES}
fi
echo "-> Installing core RPM packages..."
rpm -i --root=$INSTALLDIR $SCRIPTSDIR/base_rpms/*.rpm || exit 1

View File

@ -1,26 +1,27 @@
#!/bin/sh
if [ -n "${TEMPLATE_FLAVOR}" ]; then
PKGLISTFILE="$SCRIPTSDIR/packages_${DIST}_${TEMPLATE_FLAVOR}.list"
if ! [ -r "${PKGLISTFILE}" ]; then
echo "ERROR: ${PKGLISTFILE} does not exists!"
exit 1
fi
elif [ -r "$SCRIPTSDIR/packages_${DIST}.list" ]; then
PKGLISTFILE="$SCRIPTSDIR/packages_${DIST}.list"
else
PKGLISTFILE="$SCRIPTSDIR/packages.list"
fi
#!/bin/bash -e
# vim: set ts=4 sw=4 sts=4 et :
echo "--> Preparing environment..."
mount -t proc proc mnt/proc
source "${SCRIPTSDIR}/distribution.sh"
export PKGGROUPS=$(cat $PKGLISTFILE)
# Create system mount points
prepareChroot
export YUM0=$PWD/yum_repo_qubes
yum clean all -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR
yum install -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR $PKGGROUPS || RETCODE=1
yum update -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR || RETCODE=1
#### '----------------------------------------------------------------------
info ' Trap ERR and EXIT signals and cleanup (umount)'
#### '----------------------------------------------------------------------
trap cleanup ERR
trap cleanup EXIT
umount mnt/proc
#### '----------------------------------------------------------------------
info " Installing extra packages in script_${DIST}/packages.list file"
#### '----------------------------------------------------------------------
export YUM0=${PWD}/yum_repo_qubes
yum clean all -c ${PWD}/yum.conf ${YUM_OPTS} -y --installroot=${INSTALLDIR}
installPackages
yum update -c ${PWD}/yum.conf ${YUM_OPTS} -y --installroot=${INSTALLDIR} || exit 1
exit $RETCODE
#### '----------------------------------------------------------------------
info ' Cleanup'
#### '----------------------------------------------------------------------
trap - ERR EXIT
trap

View File

@ -1,4 +1,5 @@
#!/bin/sh
echo "--> Preparing environment..."
mount -t proc proc $PWD/mnt/proc
@ -23,4 +24,8 @@ if [ "$TEMPLATE_FLAVOR" != "minimal" ]; then
$SCRIPTSDIR/add_3rd_party_software.sh || RETCODE=1
fi
# Distribution specific steps
source ./functions.sh
buildStep "${0}" "${DIST}"
exit $RETCODE

View File

@ -0,0 +1,13 @@
#!/bin/bash -e
# vim: set ts=4 sw=4 sts=4 et :
echo "--> Creating Xwrapper.config override..."
cat > "${INSTALLDIR}/etc/X11/Xwrapper.config" <<EOF
allowed_users = anybody
needs_root_rights = yes
EOF
echo "--> Setting locale to utf8..."
cat > "${INSTALLDIR}/etc/locale.conf" <<EOF
LANG=en_US.utf8
EOF

View File

@ -0,0 +1,30 @@
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11 +1,133 @@
#!/bin/sh
#!/bin/bash -e
# vim: set ts=4 sw=4 sts=4 et :
INSTALLDIR=$PWD/mnt
source "${SCRIPTSDIR}/distribution.sh"
INSTALLDIR=${PWD}/mnt
VERSION=${DIST/fc/}
#### '----------------------------------------------------------------------
info ' Trap ERR and EXIT signals and cleanup (umount)'
#### '----------------------------------------------------------------------
trap cleanup ERR
trap cleanup EXIT
# Google Chrome
# =============
# Key Details:
# - Download: https://dl-ssl.google.com/linux/linux_signing_key.pub
# - Key ID: Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>
# - Fingerprint: 4CCA 1EAF 950C EE4A B839 76DC A040 830F 7FAC 5991
#
# sudo rpm --import linux_signing_key.pub
#
# You can verify the key installation by running:
# - rpm -qi gpg-pubkey-7fac5991-*
#
# To manually verify an RPM package, you can run the command:
# - rpm --checksig -v packagename.rpm
#
# RPMFusion
# =========
# RPM Fusion free for Fedora 20
# - pub 4096R/AE688223 2013-01-01 RPM Fusion free repository for Fedora (20) <rpmfusion-buildsys@lists.rpmfusion.org>
# Key fingerprint = 0017 DDFE FD13 2929 9D55 B1D3 963A 8848 AE68 8223
#
# RPM Fusion nonfree for Fedora 20
# - pub 4096R/B5F29883 2013-01-01 RPM Fusion nonfree repository for Fedora (20) <rpmfusion-buildsys@lists.rpmfusion.org>
# Key fingerprint = A84D CF58 46CB 10B6 5C47 6C35 63C0 DE8C B5F2 9883
#
# RPM Fusion free for Fedora 21
# - pub 4096R/6446D859 2013-06-28 RPM Fusion free repository for Fedora (21) <rpmfusion-buildsys@lists.rpmfusion.org>
# Key fingerprint = E9AF 4932 31E2 DF6F FDFE 0852 3C83 7D0D 6446 D859
#
# RPM Fusion nonfree for Fedora 21
# - pub 4096R/A668B376 2013-06-28 RPM Fusion nonfree repository for Fedora (21) <rpmfusion-buildsys@lists.rpmfusion.org>
# Key fingerprint = E160 058E F06F A4C3 C15D 0F86 0174 46D1 A668 B376
#### '----------------------------------------------------------------------
info ' Copying 3rd party software to "tmp" directory to prepare for installation'
#### '----------------------------------------------------------------------
cp -rp ${SCRIPTSDIR}/3rd_party_software ${INSTALLDIR}/tmp
#### '----------------------------------------------------------------------
info ' Installing google-chrome repos'
#### '----------------------------------------------------------------------
cp ${SCRIPTSDIR}/3rd_party_software/google-linux_signing_key.pub ${INSTALLDIR}/etc/pki/rpm-gpg/
cat << EOF > ${INSTALLDIR}/etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome - \$basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/google-linux_signing_key.pub
EOF
#### '----------------------------------------------------------------------
info ' Installing adobe repo'
#### '----------------------------------------------------------------------
rpm -i --root=${INSTALLDIR} ${SCRIPTSDIR}/3rd_party_software/adobe-release-x86_64-*.noarch.rpm || exit 1
rpm -i --root=$INSTALLDIR $SCRIPTSDIR/3rd_party_software/adobe-release-x86_64-*.noarch.rpm || exit 1
if [ "$TEMPLATE_FLAVOR" == "fullyloaded" ]; then
rpm --import --root=$INSTALLDIR mnt/etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
yum install -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR flash-plugin || exit 1
#### '------------------------------------------------------------------
info ' Installing 3rd party software'
#### '------------------------------------------------------------------
mount --bind /etc/resolv.conf ${INSTALLDIR}/etc/resolv.conf
chroot yum install $YUM_OPTS -y google-chrome-stable
rpm --import --root=${INSTALLDIR} ${INSTALLDIR}/etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
yum install -c $PWD/yum.conf $YUM_OPTS -y --installroot=${INSTALLDIR} flash-plugin || exit 1
else
yum-config-manager -c $PWD/yum.conf --installroot=$INSTALLDIR --disable adobe-linux-x86_64 > /dev/null
chroot yum-config-manager --disable google-chrome > /dev/null
chroot yum-config-manager --disable adobe-linux-x86_64 > /dev/null
fi
#### '----------------------------------------------------------------------
info ' Installing rpmfusion repos'
#### '----------------------------------------------------------------------
if [ ${VERSION} -ge 20 ]; then
# Import repo keys
chroot rpm --import /tmp/3rd_party_software/RPM-GPG-KEY-rpmfusion-free-fedora-21
chroot rpm --import /tmp/3rd_party_software/RPM-GPG-KEY-rpmfusion-nonfree-fedora-21
# Verify repos
chroot rpm --checksig /tmp/3rd_party_software/rpmfusion-free-release-21.noarch.rpm
chroot rpm --checksig /tmp/3rd_party_software/rpmfusion-nonfree-release-21.noarch.rpm
# Install repos
chroot rpm -i /tmp/3rd_party_software/rpmfusion-free-release-21.noarch.rpm
chroot rpm -i /tmp/3rd_party_software/rpmfusion-nonfree-release-21.noarch.rpm
# Disable rpmfusion-free repos
chroot yum-config-manager --disable rpmfusion-free > /dev/null
chroot yum-config-manager --disable rpmfusion-free-debuginfo > /dev/null
chroot yum-config-manager --disable rpmfusion-free-source > /dev/null
chroot yum-config-manager --disable rpmfusion-free-updates > /dev/null
chroot yum-config-manager --disable rpmfusion-free-updates-debuginfo > /dev/null
chroot yum-config-manager --disable rpmfusion-free-updates-source > /dev/null
chroot yum-config-manager --disable rpmfusion-free-updates-testing > /dev/null
chroot yum-config-manager --disable rpmfusion-free-updates-testing-debuginfo > /dev/null
chroot yum-config-manager --disable rpmfusion-free-updates-testing-source > /dev/null
chroot yum-config-manager --disable rpmfusion-free-rawhide > /dev/null
chroot yum-config-manager --disable rpmfusion-free-rawhide-debuginfo > /dev/null
chroot yum-config-manager --disable rpmfusion-free-rawhide-source > /dev/null
# Disable rpmfusion-nonfree repos
chroot yum-config-manager --disable rpmfusion-nonfree > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-debuginfo > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-source > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-updates > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-updates-debuginfo > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-updates-source > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-updates-testing > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-updates-testing-debuginfo > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-updates-testing-source > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-rawhide > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-rawhide-debuginfo > /dev/null
chroot yum-config-manager --disable rpmfusion-nonfree-rawhide-source > /dev/null
fi
#### '----------------------------------------------------------------------
info ' Cleanup'
#### '----------------------------------------------------------------------
rm -rf ${INSTALLDIR}/tmp/3rd_party_software
trap - ERR EXIT
trap

View File

@ -0,0 +1,84 @@
#!/bin/bash -e
# vim: set ts=4 sw=4 sts=4 et :
source ./functions.sh >/dev/null
source ./umount_kill.sh >/dev/null
setVerboseMode
output "${bold}${under}INFO: ${SCRIPTSDIR}/distribution.sh imported by: ${0}${reset}"
# ==============================================================================
# Cleanup function
# ==============================================================================
function cleanup() {
errval=$?
trap - ERR EXIT
trap
error "${1:-"${0}: Error. Cleaning up and un-mounting any existing mounts"}"
umount_kill "${INSTALLDIR}" || true
# Return xtrace to original state
[[ -n "${XTRACE}" ]] && [[ "${XTRACE}" -eq 0 ]] && set -x || set +x
exit $errval
}
# ==============================================================================
# Create system mount points
# ==============================================================================
function prepareChroot() {
info "--> Preparing environment..."
mount -t proc proc "${INSTALLDIR}/proc"
}
# ==============================================================================
# Yum install package(s)
# ==============================================================================
function yumInstall() {
files="$@"
mount --bind /etc/resolv.conf ${INSTALLDIR}/etc/resolv.conf
if [ -e "${INSTALLDIR}/usr/bin/yum" ]; then
chroot yum install ${YUM_OPTS} -y ${files[@]} || exit 1
else
yum install -c ${PWD}/yum.conf ${YUM_OPTS} -y --installroot=${INSTALLDIR} ${files[@]} || exit 1
fi
umount ${INSTALLDIR}/etc/resolv.conf
}
# ==============================================================================
# Install extra packages in script_${DIST}/packages.list file
# -and / or- TEMPLATE_FLAVOR directories
# ==============================================================================
function installPackages() {
if [ -n "${1}" ]; then
# Locate packages within sub dirs
if [ ${#@} == "1" ]; then
getFileLocations packages_list "${1}" ""
else
packages_list="$@"
fi
else
# TODO: Add into template flavor handler the ability to
# detect flavors that will not append recursive values
# Only file 'minimal' package lists
if [ "$TEMPLATE_FLAVOR" == "minimal" ]; then
getFileLocations packages_list "packages.list" "${DIST}_minimal"
else
getFileLocations packages_list "packages.list" "${DIST}"
fi
if [ -z "${packages_list}" ]; then
error "Can not locate a package.list file!"
umount_all || true
exit 1
fi
fi
for package_list in ${packages_list[@]}; do
debug "Installing extra packages from: ${package_list}"
declare -a packages
readarray -t packages < "${package_list}"
info "Packages: "${packages[@]}""
yumInstall "${packages[@]}" || return $?
done
}

View File

@ -0,0 +1,31 @@
pub 4096R/95A43F54 2013-11-14 Fedora (21) <fedora@fedoraproject.org>
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQINBFKEQVoBEADOb9mKZZtTIVRMMejO9dco+dsv6L2ZvnlidMVaudoD7pN9hl35
xUZFwQxzATy2iCoFY92WU1zIKxCg9fa0gS9jGGl9rOI/1uQm+i/KxkzJCKW0CYpA
QVNNYHewQa7JHuTYbaN+kWEBGG0RWJw6BN2NxR3zDkLT2tgcf0zBobeUMi6XwFg4
jikJ/vi84MEX4Gky/OtVXuzk0fGnP7xYPYfBkfG5FbMj3UxbfAAn1Sr9PxIFdCxP
c06h9kkO+gJPD7Cis1pNg9HWpssIEHIk0ZaL0sssMSpSsgP0f44UpKVCq0+JDJmM
EEu2KfeV9r2dEiEude+Gg4U3rbUh2PTZpQKKwPyggQwk6nPHbrqrr9zBIH5iyYuU
vdTVO7YrDqYK5o3WhqKYG19oNbtCziNuC9x8RLFkerr0amQjy1dZsofGYSLjZ8Er
3PgtUMunH4Y7O6FbRljniqYoQl8GDMaxhptvrOY+NqRAQiRLzpT6BB3nZhO9iSk9
Lvb9hwjMFsN5xh2wCxYV+XNjnMSO+LZisJimKhyMVhimcYK1P0sU49RcglmS2mhP
OGb14pH+B94lMve/kQu4unnhKhtkPA0mOyeH8BGl63vvEbJtMzpMqbHvzr60h8PA
H7EsAsYJZp4Xa+F1wBRBJ3xKaUTQ7r7mmpFsdgzlI2wjNgLbyEV4YSNVjwARAQAB
tCZGZWRvcmEgKDIxKSA8ZmVkb3JhQGZlZG9yYXByb2plY3Qub3JnPokCOAQTAQIA
IgUCUoRBWgIbDwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQia1Oh5WkP1S+
rQ//V5WOPjl0UjEgRYsjwm6LGZe8/P4muXdKX1OuRF+MLZxW1Pbr43zjvfY9tZlD
v4QpI5uECX5To9phrOXI8ghFpI4aQbRe2enk4dksgdhzdBW0JgM3JRf8F+tPLKEF
kB2/tGqi/irp+Hij/tiHwUZjx8qKGbF0r2bxAkSS5qkmalTs6PwcWwEN4a6sKPgw
iVGL2VRM46YoNDORwH7HYeODbJtyJyX3NvcluNKf/D3OZFaNYH+nUISlaPAbC5HJ
sVmZD9vm2E2ypErbZzrY3N8PRgHuIrDmO+LmksWteofpWZO84lyuvgYgXPy8Q3Ls
+p0zfE5zv8EbX4WG+l1SF7hVdPC7UEPUuHmlm81Fi69tSvwO+N4PrDU094VHT+UQ
rKmtSGDOfSx6FvrEqMakiEyBgKNwhsVJbi6/LXHMBImbSN3tOxSMBxGEi2cSn/KF
LRukmMoEw4PHZK+gPpwsP1cTfxezs/aH/PMBaPUgg1qCu9uNNFmEs3d5LLSee9RM
U+gwECX+D44vqJUAT7xM1A4yij3rPF2RegOmNhu5wg4zNSGKoVV8QsMOKrjIZHmG
pFVvYFP4OxLEwh6OYZj9qfaw445ryqfcxSNzZ3m+VSwHuZ049v7u8fndZ8TREVXx
hdjPHxjtaiJ1R0Zb4ZvycUcDLl2Xc1CRJAMVvFJcg1SNrGs=
=xtMc
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -0,0 +1,32 @@
@^workstation-product-environment
@libreoffice
emacs
vim-enhanced
gnupg
xterm
firefox
thunderbird
keepassx
perl-File-MimeInfo
network-manager-applet
xfce4-terminal
exo
--exclude=kdegames
--exclude=firstboot
--exclude=xorg-x11-drv-nouveau
--exclude=firewall-config,firewalld*
--exclude=gnome-boxes
--exclude=qemu-img,qemu-common,qemu-system
--exclude=qemu-*,libvirt*,spice-glib,spice-gtk3,vinagre
git
createrepo
rpm-build
qubes-core-vm-kernel-placeholder
linux-firmware
ltrace
strace
haveged
mate-notification-daemon
sudo
xorg-x11-fonts-100dpi
xorg-x11-fonts-Type1

View File

@ -0,0 +1 @@
packages_fc21.list

View File

@ -0,0 +1,6 @@
xterm
--exclude=kdegames
--exclude=firstboot
--exclude=xorg-x11-drv-nouveau
--exclude=firewall-config,firewalld
--exclude=gnome-boxes