Compare commits

..

5 commits

Author SHA1 Message Date
Chris Lumens
efdb64965e firewall: add --use-system-defaults arg to command (#1526486)
This is different from the patch on master in a couple ways.  The most
important is that classes are named F27 here, not F28.
2018-01-05 15:21:24 -05:00
Chris Lumens
62c7fdcd8e Pylint fixes (vponcova)
Add command hmc to support SE/HMC file access in RHEL7 (vponcova)
Add timeout and retries options to %packages section in RHEL7 (vponcova)
Call the _ method from i18n.py (jkonecny)
2017-10-16 11:57:03 -04:00
Chris Lumens
3d28226d9b Add a new 'mount' command (vpodzime) 2017-10-12 11:32:17 -04:00
Chris Lumens
4aac0d634a network: add network --bindto option (Fedora) (#1483981) (rvykydal)
network: add network --bindto option (RHEL) (#1483981) (rvykydal)
2017-09-15 14:50:55 -04:00
Chris Lumens
490775161a Add url --metalink support (#1464843) (rvykydal)
Add repo --metalink support (#1464843) (rvykydal)
Add Fedora 27 support. (rvykydal)
Update Repo command tests. (rvykydal)
Split the import of commands to multiple lines (vponcova)
Move the installclass command to the %anaconda section (vponcova)
2017-09-07 10:13:35 -04:00
20 changed files with 894 additions and 1573 deletions

View file

@ -1 +0,0 @@
1

113
.gitignore vendored
View file

@ -175,118 +175,7 @@ pykickstart-1.78.tar.gz
/pykickstart-2.35.tar.gz
/pykickstart-2.36.tar.gz
/pykickstart-2.37.tar.gz
/pykickstart-2.38.tar.gz
/pykickstart-2.39.tar.gz
/pykickstart-2.40.tar.gz
/pykickstart-2.41.tar.gz
/pykickstart-2.42.tar.gz
/pykickstart-2.43.tar.gz
/pykickstart-2.44.tar.gz
/pykickstart-3.10.tar.gz
/pykickstart-3.11.tar.gz
/pykickstart-3.12.tar.gz
/pykickstart-3.13.tar.gz
/pykickstart-3.14.tar.gz
/pykickstart-3.15.tar.gz
/pykickstart-3.16.tar.gz
/pykickstart-3.17.tar.gz
/pykickstart-3.18.tar.gz
/pykickstart-3.19.tar.gz
/pykickstart-3.19.tar.gz.asc
/pykickstart-3.20.tar.gz
/pykickstart-3.20.tar.gz.asc
/pykickstart-3.21.tar.gz
/pykickstart-3.21.tar.gz.asc
/pykickstart-3.22.tar.gz
/pykickstart-3.22.tar.gz.asc
/pykickstart-3.23.tar.gz
/pykickstart-3.23.tar.gz.asc
/pykickstart-3.24.tar.gz
/pykickstart-3.24.tar.gz.asc
/pykickstart-3.25.tar.gz
/pykickstart-3.25.tar.gz.asc
/pykickstart-3.26.tar.gz
/pykickstart-3.26.tar.gz.asc
/pykickstart-3.27.tar.gz
/pykickstart-3.27.tar.gz.asc
/pykickstart-3.28.tar.gz
/pykickstart-3.28.tar.gz.asc
/pykickstart-3.29.tar.gz
/pykickstart-3.29.tar.gz.asc
/pykickstart-3.30.tar.gz
/pykickstart-3.30.tar.gz.asc
/pykickstart-3.31.tar.gz
/pykickstart-3.31.tar.gz.asc
/pykickstart-3.32.tar.gz
/pykickstart-3.32.tar.gz.asc
/pykickstart-3.33.tar.gz
/pykickstart-3.33.tar.gz.asc
/pykickstart-3.34.tar.gz
/pykickstart-3.34.tar.gz.asc
/pykickstart-3.35.tar.gz
/pykickstart-3.35.tar.gz.asc
/pykickstart-3.36.tar.gz
/pykickstart-3.36.tar.gz.asc
/pykickstart-3.37.tar.gz
/pykickstart-3.37.tar.gz.asc
/pykickstart-3.38.tar.gz
/pykickstart-3.38.tar.gz.asc
/pykickstart-3.39.tar.gz
/pykickstart-3.39.tar.gz.asc
/pykickstart-3.40.tar.gz
/pykickstart-3.40.tar.gz.asc
/pykickstart-3.41.tar.gz
/pykickstart-3.41.tar.gz.asc
/pykickstart-3.42.tar.gz
/pykickstart-3.42.tar.gz.asc
/pykickstart-3.43.tar.gz
/pykickstart-3.43.tar.gz.asc
/pykickstart-3.44.tar.gz
/pykickstart-3.44.tar.gz.asc
/pykickstart-3.45.tar.gz
/pykickstart-3.45.tar.gz.asc
/pykickstart-3.46.tar.gz
/pykickstart-3.46.tar.gz.asc
/pykickstart-3.47.tar.gz
/pykickstart-3.47.tar.gz.asc
/pykickstart-3.48.tar.gz
/pykickstart-3.48.tar.gz.asc
/pykickstart-3.49.tar.gz
/pykickstart-3.49.tar.gz.asc
/pykickstart-3.50.tar.gz
/pykickstart-3.50.tar.gz.asc
/pykickstart-3.51.tar.gz
/pykickstart-3.51.tar.gz.asc
/pykickstart-3.52.tar.gz
/pykickstart-3.52.tar.gz.asc
/pykickstart-3.53.tar.gz
/pykickstart-3.53.tar.gz.asc
/pykickstart-3.54.tar.gz
/pykickstart-3.54.tar.gz.asc
/pykickstart-3.55.tar.gz
/pykickstart-3.55.tar.gz.asc
/pykickstart-3.56.tar.gz
/pykickstart-3.56.tar.gz.asc
/pykickstart-3.57.tar.gz
/pykickstart-3.57.tar.gz.asc
/pykickstart-3.58.tar.gz
/pykickstart-3.58.tar.gz.asc
/pykickstart-3.59.tar.gz
/pykickstart-3.59.tar.gz.asc
/pykickstart-3.60.tar.gz
/pykickstart-3.60.tar.gz.asc
/pykickstart-3.61.tar.gz
/pykickstart-3.61.tar.gz.asc
/pykickstart-3.62.tar.gz
/pykickstart-3.62.tar.gz.asc
/pykickstart-3.63.tar.gz
/pykickstart-3.63.tar.gz.asc
/pykickstart-3.64.tar.gz
/pykickstart-3.64.tar.gz.asc
/pykickstart-3.65.tar.gz
/pykickstart-3.65.tar.gz.asc
/pykickstart-3.66.tar.gz
/pykickstart-3.66.tar.gz.asc
/pykickstart-3.67.tar.gz
/pykickstart-3.67.tar.gz.asc
/pykickstart-3.68.tar.gz
/pykickstart-3.68.tar.gz.asc

View file

@ -0,0 +1,60 @@
From 86d7f78340309ef41b001c0598b1ec1ad75d9945 Mon Sep 17 00:00:00 2001
From: Chris Lumens <clumens@redhat.com>
Date: Tue, 2 Jan 2018 16:16:49 -0500
Subject: [PATCH 1/3] Port the F20 firewall test from master.
---
tests/commands/firewall.py | 31 +++++++++++++++++--------------
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/tests/commands/firewall.py b/tests/commands/firewall.py
index 80cf59d..db5e44d 100644
--- a/tests/commands/firewall.py
+++ b/tests/commands/firewall.py
@@ -45,20 +45,6 @@ class FC3_TestCase(CommandTest):
self.assert_parse("firewall --enable --trust=eth0,eth1 --ssh --http --smtp --ftp --port=1234:udp"
"firewall --enabled --port=1234:udp --trust=eth0,eth1 --service=ssh,http,smtp,ftp\n")
- # remove service
- if "--remove-service" in self.optionList:
- self.assert_parse("firewall --remove-service=mdns",
- "firewall --remove-service=mdns\n") # remove only
- # service & remove service at once
- self.assert_parse("firewall --service=ssh --remove-service=mdns",
- "firewall --service=ssh --remove-service=mdns\n")
- # with alternative service notation
- self.assert_parse("firewall --ssh --smtp --ftp --remove-service=mdns",
- "firewall --ssh --smtp --ftp --remove-service=mdns\n")
- # multiple remove & remove ssh
- self.assert_parse("firewall --service=mdns --remove-service=dhcpv6-client --remove-service=ssh",
- "firewall --service=mdns --remove-service=dhcpv6-client --remove-service=ssh\n")
-
# disable firewall
self.assert_parse("firewall --disabled", "firewall --disabled\n")
self.assert_parse("firewall --disable", "firewall --disabled\n")
@@ -102,5 +88,22 @@ class F14_TestCase(F10_TestCase):
# removed
self.assert_removed("firewall", "--telnet")
+class F20_TestCase(F14_TestCase):
+ def runTest(self):
+ F14_TestCase.runTest(self)
+
+ # remove service
+ self.assert_parse("firewall --remove-service=mdns",
+ "firewall --enabled --remove-service=mdns\n") # remove only
+ # service & remove service at once
+ self.assert_parse("firewall --service=ssh --remove-service=mdns",
+ "firewall --enabled --service=ssh --remove-service=mdns\n")
+ # with alternative service notation
+ self.assert_parse("firewall --ssh --smtp --ftp --remove-service=mdns",
+ "firewall --enabled --service=ssh,smtp,ftp --remove-service=mdns\n")
+ # multiple remove & remove ssh
+ self.assert_parse("firewall --service=mdns --remove-service=dhcpv6-client --remove-service=ssh",
+ "firewall --enabled --service=mdns --remove-service=dhcpv6-client,ssh\n")
+
if __name__ == "__main__":
unittest.main()
--
2.9.4

View file

@ -0,0 +1,78 @@
From 74a377fefeac8020bcc852e3ecf83a8a36e9ab58 Mon Sep 17 00:00:00 2001
From: Dusty Mabe <dusty@dustymabe.com>
Date: Thu, 14 Dec 2017 15:11:37 -0500
Subject: [PATCH 2/3] firewall: add --use-system-defaults arg to command
(#1526486)
Needed for [1] where we would like to include firewalld
and configure firewalld in Atomic Host (in the ostree) and
have Anaconda leave the delivered "defaults" in place.
[1] https://pagure.io/atomic-wg/issue/401
Resolves: rhbz#1526486
---
pykickstart/commands/firewall.py | 17 +++++++++++++++++
pykickstart/handlers/f27.py | 2 +-
tests/commands/firewall.py | 8 ++++++++
4 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/pykickstart/commands/firewall.py b/pykickstart/commands/firewall.py
index 4b94aad..473d21c 100644
--- a/pykickstart/commands/firewall.py
+++ b/pykickstart/commands/firewall.py
@@ -233,3 +233,20 @@ class F20_Firewall(F14_Firewall):
return retval + "%s\n" % svcstr
else:
return retval
+
+class F27_Firewall(F20_Firewall):
+ def __init__(self, writePriority=0, *args, **kwargs):
+ F20_Firewall.__init__(self, writePriority, *args, **kwargs)
+ self.use_system_defaults = kwargs.get("use_system_defaults", None)
+
+ def _getParser(self):
+ op = F20_Firewall._getParser(self)
+ op.add_option("--use-system-defaults", dest="use_system_defaults",
+ action="store_true", default=False)
+ return op
+
+ def __str__(self):
+ if self.use_system_defaults:
+ return "# Firewall configuration\nfirewall --use-system-defaults\n"
+ else:
+ return F20_Firewall.__str__(self)
diff --git a/pykickstart/handlers/f27.py b/pykickstart/handlers/f27.py
index b57fd41..5582468 100644
--- a/pykickstart/handlers/f27.py
+++ b/pykickstart/handlers/f27.py
@@ -42,7 +42,7 @@ class F27Handler(BaseHandler):
"driverdisk": commands.driverdisk.F14_DriverDisk,
"eula": commands.eula.F20_Eula,
"fcoe": commands.fcoe.F13_Fcoe,
- "firewall": commands.firewall.F20_Firewall,
+ "firewall": commands.firewall.F27_Firewall,
"firstboot": commands.firstboot.FC3_Firstboot,
"graphical": commands.displaymode.F26_DisplayMode,
"group": commands.group.F12_Group,
diff --git a/tests/commands/firewall.py b/tests/commands/firewall.py
index db5e44d..1531352 100644
--- a/tests/commands/firewall.py
+++ b/tests/commands/firewall.py
@@ -105,5 +105,13 @@ class F20_TestCase(F14_TestCase):
self.assert_parse("firewall --service=mdns --remove-service=dhcpv6-client --remove-service=ssh",
"firewall --enabled --service=mdns --remove-service=dhcpv6-client,ssh\n")
+class F27_TestCase(F20_TestCase):
+ def runTest(self):
+ F20_TestCase.runTest(self)
+
+ # use-system-defaults
+ self.assert_parse("firewall --use-system-defaults", "firewall --use-system-defaults\n")
+ self.assert_parse("firewall --enabled --service=ssh --use-system-defaults", "firewall --use-system-defaults\n")
+
if __name__ == "__main__":
unittest.main()
--
2.9.4

View file

@ -0,0 +1,25 @@
From 71b2c1bfbae8c921ea241ba49bee419427286403 Mon Sep 17 00:00:00 2001
From: Chris Lumens <clumens@redhat.com>
Date: Fri, 5 Jan 2018 14:56:51 -0500
Subject: [PATCH 3/3] Disable translation-canary.
---
po/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/po/Makefile b/po/Makefile
index 828b59e..e514fc9 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -12,7 +12,7 @@ INSTALL_NLS_DIR = $(DESTDIR)/`$(PYTHON) -c "from distutils.sysconfig import get_
# PO catalog handling
MSGMERGE = msgmerge -v
-XGETTEXT = ../translation-canary/xgettext_werror.sh --default-domain=$(NLSPACKAGE) \
+XGETTEXT = xgettext --default-domain=$(NLSPACKAGE) \
--add-comments
MSGFMT = msgfmt --statistics --verbose
--
2.9.4

View file

@ -1,7 +0,0 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts: [bodhi_update_push_stable]
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View file

@ -1,8 +0,0 @@
summary: Run pykickstart tests
prepare:
how: install
package:
- python3-kickstart
- pykickstart
execute:
script: ./tests/scripts/run_tests.sh

File diff suppressed because it is too large Load diff

View file

@ -1,2 +1 @@
SHA512 (pykickstart-3.68.tar.gz) = 103034f2ad47afa470066b4c98092ac634c5c5ed21c1c98a65170c78cc86e95f5565bb4c29a24a890836e45d2094b529fcdb02f8a004875cc13db505bd2ba51e
SHA512 (pykickstart-3.68.tar.gz.asc) = 33d2e3ea50bdffdb7bc4939b68c3069d6fce6087cd186ac57773981928a090608f7509fd8f63bacbbd6544d828da3eb1e1fb785f5ff7e547364c9cd360eaf106
SHA512 (pykickstart-2.41.tar.gz) = c7ed3565ff53433b616de707d15fd6c7b07f7d9612c1422ba88d06575be7cada2dad3432ad3c3b746d5bf8c0bd88ccbf8ada92cf682dca4a577830693cbe6219

View file

@ -1,47 +0,0 @@
text
lang en_US.UTF-8
keyboard us
timezone US/Eastern
selinux --enforcing
firewall --enabled --service=mdns
services --enabled=sshd,NetworkManager,chronyd
network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
bootloader --timeout=1
zerombr
clearpart --all --initlabel --disklabel=msdos
# make sure that initial-setup runs and lets us do all the configuration bits
firstboot --reconfig
repo --name "packages" --url https://nowhere/
%packages
@core
@standard
@hardware-support
kernel
# on 32bit arm make sure we only install one kernel
-kernel-lpae
# remove this in %post
dracut-config-generic
-dracut-config-rescue
# install tools needed to manage and boot arm systems
@arm-tools
chrony
bcm283x-firmware
initial-setup
# Intel wireless firmware assumed never of use for disk images
-iwl*
-ipw*
-usb_modeswitch
-generic-release*
# make sure all the locales are available for inital-setup and anaconda to work
glibc-all-langpacks
%end

View file

@ -1,2 +0,0 @@
echo "not a kickstart"
without any --commands

View file

@ -1,104 +0,0 @@
# fedora-disk-base.ks
#
# Defines the basics for all kickstarts in the fedora-live branch
# Does not include package selection (other then mandatory)
# Does not include localization packages or configuration
#
# Does includes "default" language configuration (kickstarts including
# this template can override these settings)
text
lang en_US.UTF-8
keyboard us
timezone US/Eastern
selinux --enforcing
firewall --enabled --service=mdns
services --enabled=sshd,NetworkManager,chronyd
network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
bootloader --timeout=1
zerombr
clearpart --all --initlabel --disklabel=msdos
# make sure that initial-setup runs and lets us do all the configuration bits
firstboot --reconfig
%include fedora-repo.ks
%packages
@core
@standard
@hardware-support
kernel
# on 32bit arm make sure we only install one kernel
-kernel-lpae
# remove this in %post
dracut-config-generic
-dracut-config-rescue
# install tools needed to manage and boot arm systems
@arm-tools
chrony
bcm283x-firmware
initial-setup
# Intel wireless firmware assumed never of use for disk images
-iwl*
-ipw*
-usb_modeswitch
-generic-release*
# make sure all the locales are available for inital-setup and anaconda to work
glibc-all-langpacks
%end
%post
# Find the architecture we are on
arch=$(uname -m)
# Setup Raspberry Pi firmware
if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then
if [[ $arch == "aarch64" ]]; then
cp -P /usr/share/uboot/rpi_3/u-boot.bin /boot/efi/rpi3-u-boot.bin
cp -P /usr/share/uboot/rpi_4/u-boot.bin /boot/efi/rpi4-u-boot.bin
cp -P /usr/share/uboot/rpi_arm64/u-boot.bin /boot/efi/rpi-u-boot.bin
else
cp -P /usr/share/uboot/rpi_2/u-boot.bin /boot/efi/rpi2-u-boot.bin
cp -P /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/efi/rpi3-u-boot.bin
cp -P /usr/share/uboot/rpi_4_32b/u-boot.bin /boot/efi/rpi4-u-boot.bin
fi
fi
releasever=$(rpm --eval '%{fedora}')
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary
echo "Packages within this disk image"
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
# remove random seed, the newly installed instance should make it's own
rm -f /var/lib/systemd/random-seed
# The enp1s0 interface is a left over from the imagefactory install, clean this up
rm -f /etc/NetworkManager/system-connections/*.nmconnection
dnf -y remove dracut-config-generic
# Remove machine-id on pre generated images
rm -f /etc/machine-id
touch /etc/machine-id
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
# Anaconda adds console=tty0 to the grub boot line on all images. this is problematic
# when you are using fedora via serial console as you do not get any output post grub
# linux does a good job of knowing what consoles need to be enabled.
# https://bugzilla.redhat.com/show_bug.cgi?id=2022757
if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then
sed -i -e 's|console=tty0||g' /boot/loader/entries/*conf
fi
%end

View file

@ -1,106 +0,0 @@
# fedora-live-base.ks
#
# Defines the basics for all kickstarts in the fedora-live branch
# Does not include package selection (other then mandatory)
# Does not include localization packages or configuration
#
# Does includes "default" language configuration (kickstarts including
# this template can override these settings)
lang en_US.UTF-8
keyboard us
timezone US/Eastern
selinux --enforcing
firewall --enabled --service=mdns
xconfig --startxonboot
zerombr
clearpart --all
part / --size 5120 --fstype ext4
services --enabled=NetworkManager,ModemManager --disabled=sshd
network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
%include fedora-repo.ks
%packages
# Explicitly specified here:
# <notting> walters: because otherwise dependency loops cause yum issues.
kernel
kernel-modules
kernel-modules-extra
# The point of a live image is to install
anaconda
anaconda-install-env-deps
anaconda-live
@anaconda-tools
# Anaconda has a weak dep on this and we don't want it on livecds, see
# https://fedoraproject.org/wiki/Changes/RemoveDeviceMapperMultipathFromWorkstationLiveCD
-fcoe-utils
-device-mapper-multipath
# Need aajohan-comfortaa-fonts for the SVG rnotes images
aajohan-comfortaa-fonts
# Without this, initramfs generation during live image creation fails: #1242586
dracut-live
# anaconda needs the locales available to run for different locales
glibc-all-langpacks
# provide the livesys scripts
livesys-scripts
%end
%post
# Enable livesys services
systemctl enable livesys.service
systemctl enable livesys-late.service
# enable tmpfs for /tmp
systemctl enable tmp.mount
# make it so that we don't do writing to the overlay for things which
# are just tmpdirs/caches
# note https://bugzilla.redhat.com/show_bug.cgi?id=1135475
cat >> /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*
echo "Packages within this LiveCD"
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
# 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
systemctl disable network
# Remove machine-id on pre generated images
rm -f /etc/machine-id
touch /etc/machine-id
%end

View file

@ -1,106 +0,0 @@
# fedora-live-base.ks
#
# Defines the basics for all kickstarts in the fedora-live branch
# Does not include package selection (other then mandatory)
# Does not include localization packages or configuration
#
# Does includes "default" language configuration (kickstarts including
# this template can override these settings)
lang en_US.UTF-8
keyboard us
timezone US/Eastern
selinux --enforcing
firewall --enabled --service=mdns
xconfig --startxonboot
zerombr
clearpart --all
##part / --size 5120 --fstype ext4
services --enabled=NetworkManager,ModemManager --disabled=sshd
network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
%include fedora-repo.ks
%packages
# Explicitly specified here:
# <notting> walters: because otherwise dependency loops cause yum issues.
kernel
kernel-modules
kernel-modules-extra
# The point of a live image is to install
anaconda
anaconda-install-env-deps
anaconda-live
@anaconda-tools
# Anaconda has a weak dep on this and we don't want it on livecds, see
# https://fedoraproject.org/wiki/Changes/RemoveDeviceMapperMultipathFromWorkstationLiveCD
-fcoe-utils
-device-mapper-multipath
# Need aajohan-comfortaa-fonts for the SVG rnotes images
aajohan-comfortaa-fonts
# Without this, initramfs generation during live image creation fails: #1242586
dracut-live
# anaconda needs the locales available to run for different locales
glibc-all-langpacks
# provide the livesys scripts
livesys-scripts
%end
%post
# Enable livesys services
systemctl enable livesys.service
systemctl enable livesys-late.service
# enable tmpfs for /tmp
systemctl enable tmp.mount
# make it so that we don't do writing to the overlay for things which
# are just tmpdirs/caches
# note https://bugzilla.redhat.com/show_bug.cgi?id=1135475
cat >> /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*
echo "Packages within this LiveCD"
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
# 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
systemctl disable network
# Remove machine-id on pre generated images
rm -f /etc/machine-id
touch /etc/machine-id
%end

View file

@ -1,9 +0,0 @@
# Common packages removed from comps
# For F14, these removals should be moved to comps itself
%packages
# save some space
-hplip
%end

View file

@ -1,33 +0,0 @@
# fedora-livecd-xfce.ks
#
# Description:
# - Fedora Live Spin with the light-weight XFCE Desktop Environment
#
# Maintainer(s):
# - Rahul Sundaram <sundaram@fedoraproject.org>
# - Christoph Wickert <cwickert@fedoraproject.org>
# - Kevin Fenzi <kevin@tummy.com>
# - Adam Miller <maxamillion@fedoraproject.org>
%include fedora-live-base.ks
%include fedora-live-minimization.ks
%include fedora-xfce-common.ks
# need a bigger /
part / --size 6144
%post
# xfce configuration
# create /etc/sysconfig/desktop (needed for installation)
cat > /etc/sysconfig/desktop <<EOF
PREFERRED=/usr/bin/startxfce4
DISPLAYMANAGER=/usr/sbin/lightdm
EOF
# set livesys session type
sed -i 's/^livesys_session=.*/livesys_session="xfce"/' /etc/sysconfig/livesys
%end

View file

@ -1,2 +0,0 @@
repo --name=rawhide --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch

View file

@ -1,9 +0,0 @@
# Include the appropriate repo definitions
# Exactly one of the following should be uncommented
# For the master branch the following should be uncommented
%include fedora-repo-rawhide.ks
# For non-master branches the following should be uncommented
# %include fedora-repo-not-rawhide.ks

View file

@ -1,34 +0,0 @@
# fedora-livecd-xfce.ks
#
# Description:
# - Fedora Live Spin with the light-weight XFCE Desktop Environment
#
# Maintainer(s):
# - Kevin Fenzi <kevin@tummy.com>
# - Adam Miller <maxamillion@fedoraproject.org>
# - Mukundan Ragavan <nonamedotc@fedoraproject.org>
%packages
fedora-release-xfce
# install env-group to resolve RhBug:1891500
@^xfce-desktop-environment
@xfce-apps
@xfce-extra-plugins
@xfce-media
@xfce-office
wget
system-config-printer
# save some space
-autofs
-acpid
-gimp-help
-desktop-backgrounds-basic
-aspell-* # dictionaries are big
-xfce4-sensors-plugin
-xfce4-eyes-plugin
%end

View file

@ -1,24 +0,0 @@
#!/bin/sh
echo "Running pykickstart tests"
cd ./tests/
# Run ksvalidator on good kickstart examples
for f in ./good-ks/*.ks; do
echo "Checking $f"
ksvalidator $f || exit 1
done
# Run ksvalidator on bad kickstart examples
for f in ./bad-ks/*.ks; do
echo "Checking $f"
ksvalidator $f && exit 1
done
# Run ksflatten on a set of kickstarts
echo "Testing ksflatten with included kickstarts"
ksflatten -c ./include-ks/fedora-live-xfce.ks -o flat.ks || exit 1
ksvalidator flat.ks || exit 1
exit 0