mirror of
https://pagure.io/fedora-kickstarts.git
synced 2025-12-09 00:20:31 +08:00
Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
028fd2edcd | ||
|
|
9e89057b4a | ||
|
|
5f9a323aea | ||
|
|
899bc45aa1 | ||
|
|
8c83a275ee | ||
|
|
847afdf7a0 | ||
|
|
1fd9547603 | ||
|
|
4a677c7613 | ||
|
|
b8f8e39b7c | ||
|
|
b8b9f532b6 | ||
|
|
de39b451c9 | ||
|
|
249374e72b | ||
|
|
5f600c3412 | ||
|
|
a0ad041cc3 | ||
|
|
97368dfb7b | ||
|
|
1052911243 | ||
|
|
5dc350ad94 | ||
|
|
c6bc0981c7 | ||
|
|
29304129a0 | ||
|
|
fcebc307ad | ||
|
|
19a58f0fc6 | ||
|
|
1ba38e3f1f | ||
|
|
2bad7a13cb | ||
|
|
46f3891c5c | ||
|
|
c5e43ec1f9 |
@@ -8,6 +8,7 @@ bootloader --location=mbr
|
||||
|
||||
part /boot/efi --size=80 --fstype vfat --asprimary
|
||||
part /boot --size=512 --fstype ext4 --asprimary
|
||||
part / --size=2800 --fstype ext4 --asprimary
|
||||
|
||||
# make sure that initial-setup runs and lets us do all the configuration bits
|
||||
firstboot --reconfig
|
||||
@@ -43,6 +44,7 @@ initial-setup-gui
|
||||
|
||||
# make sure all the locales are available for inital0-setup and anaconda to work
|
||||
glibc-all-langpacks
|
||||
|
||||
%end
|
||||
|
||||
%post
|
||||
@@ -71,8 +73,13 @@ systemctl mask tmp.mount
|
||||
|
||||
dnf -y remove dracut-config-generic
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
%include fedora-arm-xbase.ks
|
||||
%include fedora-lxqt-common.ks
|
||||
|
||||
part / --size=4400 --fstype ext4 --asprimary
|
||||
part / --size=4200 --fstype ext4 --asprimary
|
||||
|
||||
%packages
|
||||
# trojita not available on non-x86 platforms
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
%include fedora-arm-xbase.ks
|
||||
%include fedora-mate-common.ks
|
||||
|
||||
part / --size=7168 --fstype ext4
|
||||
part / --size=6000 --fstype ext4
|
||||
|
||||
%post
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
%include fedora-arm-base.ks
|
||||
%include fedora-minimal-common.ks
|
||||
|
||||
part / --size=1400 --fstype ext4
|
||||
part /boot --size=512 --fstype ext4
|
||||
part / --size=1256 --fstype ext4
|
||||
|
||||
%packages
|
||||
-xkeyboard-config
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
@input-methods
|
||||
@multimedia
|
||||
@printing
|
||||
epiphany
|
||||
%end
|
||||
|
||||
%post
|
||||
|
||||
27
fedora-atomic-testing-base.ks
Normal file
27
fedora-atomic-testing-base.ks
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
# ./fedora-atomic-testing-base.ks - for building media from the testing
|
||||
# refs (fedora/29/${basearch}/testing/atomic-host)
|
||||
|
||||
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://kojipkgs.fedoraproject.org/compose/atomic/repo/ --ref=fedora/29/${basearch}/testing/atomic-host
|
||||
|
||||
%post --erroronfail
|
||||
# Find the architecture we are on
|
||||
arch=$(uname -m)
|
||||
# Set the origin to the "main stable ref", distinct from /testing/ which is where bodhi writes.
|
||||
# We want consumers of this image to track the two week releases.
|
||||
ostree admin set-origin --index 0 fedora-atomic https://dl.fedoraproject.org/atomic/repo/ "fedora/29/${arch}/atomic-host"
|
||||
|
||||
# Make sure the ref we're supposedly sitting on (according
|
||||
# to the updated origin) exists.
|
||||
ostree refs "fedora-atomic:fedora/29/${arch}/testing/atomic-host" --create "fedora-atomic:fedora/29/${arch}/atomic-host"
|
||||
|
||||
# Remove the old ref so that the commit eventually gets
|
||||
# cleaned up.
|
||||
ostree refs "fedora-atomic:fedora/29/${arch}/testing/atomic-host" --delete
|
||||
|
||||
# delete/add the remote with new options to enable gpg verification
|
||||
# and to point them at the cdn url
|
||||
ostree remote delete fedora-atomic
|
||||
ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-29-primary fedora-atomic 'https://dl.fedoraproject.org/atomic/repo/'
|
||||
|
||||
%end
|
||||
6
fedora-atomic-testing.ks
Normal file
6
fedora-atomic-testing.ks
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
# ./fedora-atomic-testing.ks - for building base cloud media
|
||||
# from the testing refs (fedora/29/${basearch}/testing/atomic-host)
|
||||
|
||||
%include fedora-atomic.ks
|
||||
%include fedora-atomic-testing-base.ks
|
||||
27
fedora-atomic-updates-base.ks
Normal file
27
fedora-atomic-updates-base.ks
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
# ./fedora-atomic-updates-base.ks - for building media from the updates
|
||||
# refs (fedora/29/${basearch}/updates/atomic-host)
|
||||
|
||||
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://kojipkgs.fedoraproject.org/compose/atomic/repo/ --ref=fedora/29/${basearch}/updates/atomic-host
|
||||
|
||||
%post --erroronfail
|
||||
# Find the architecture we are on
|
||||
arch=$(uname -m)
|
||||
# Set the origin to the "main stable ref", distinct from /updates/ which is where bodhi writes.
|
||||
# We want consumers of this image to track the two week releases.
|
||||
ostree admin set-origin --index 0 fedora-atomic https://dl.fedoraproject.org/atomic/repo/ "fedora/29/${arch}/atomic-host"
|
||||
|
||||
# Make sure the ref we're supposedly sitting on (according
|
||||
# to the updated origin) exists.
|
||||
ostree refs "fedora-atomic:fedora/29/${arch}/updates/atomic-host" --create "fedora-atomic:fedora/29/${arch}/atomic-host"
|
||||
|
||||
# Remove the old ref so that the commit eventually gets
|
||||
# cleaned up.
|
||||
ostree refs "fedora-atomic:fedora/29/${arch}/updates/atomic-host" --delete
|
||||
|
||||
# delete/add the remote with new options to enable gpg verification
|
||||
# and to point them at the cdn url
|
||||
ostree remote delete fedora-atomic
|
||||
ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-29-primary fedora-atomic 'https://dl.fedoraproject.org/atomic/repo/'
|
||||
|
||||
%end
|
||||
6
fedora-atomic-updates.ks
Normal file
6
fedora-atomic-updates.ks
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
# ./fedora-atomic-updates.ks - for building base cloud media
|
||||
# from the updates refs (fedora/29/${basearch}/updates/atomic-host)
|
||||
|
||||
%include fedora-atomic.ks
|
||||
%include fedora-atomic-updates-base.ks
|
||||
6
fedora-atomic-vagrant-testing.ks
Normal file
6
fedora-atomic-vagrant-testing.ks
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
# ./fedora-atomic-vagrant-testing.ks - for building media from the testing
|
||||
# refs (fedora/29/${basearch}/testing/atomic-host) for vagrant
|
||||
|
||||
%include fedora-atomic-vagrant.ks
|
||||
%include fedora-atomic-testing-base.ks
|
||||
6
fedora-atomic-vagrant-updates.ks
Normal file
6
fedora-atomic-vagrant-updates.ks
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
# ./fedora-atomic-vagrant-updates.ks - for building media from the updates
|
||||
# refs (fedora/29/${basearch}/updates/atomic-host) for vagrant
|
||||
|
||||
%include fedora-atomic-vagrant.ks
|
||||
%include fedora-atomic-updates-base.ks
|
||||
37
fedora-atomic-vagrant.ks
Normal file
37
fedora-atomic-vagrant.ks
Normal file
@@ -0,0 +1,37 @@
|
||||
# Like the Atomic Host cloud image, but tuned for vagrant: enable the
|
||||
# vagrant user, disable cloud-init.
|
||||
|
||||
%include fedora-atomic.ks
|
||||
|
||||
user --name=vagrant --password=vagrant
|
||||
rootpw vagrant
|
||||
|
||||
# The addition of the net.ifnames=0 and biosdevnames=0 option ensures that
|
||||
# even on VirtualBox virt, we get a primary network device with "eth0" as the name
|
||||
# This simplifies things and allows a single disk image for both supported Vagrant
|
||||
# platforms (virtualbox and kvm)
|
||||
bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"
|
||||
|
||||
%post --erroronfail
|
||||
|
||||
# Work around cloud-init being both disabled and enabled; need
|
||||
# to refactor to a common base.
|
||||
systemctl mask cloud-init cloud-init-local cloud-config cloud-final
|
||||
|
||||
# The inherited cloud %post locks the passwd, but we want it
|
||||
# unlocked for vagrant, just like downstream.
|
||||
passwd -u root
|
||||
|
||||
# Vagrant setup
|
||||
sed -i 's,Defaults\\s*requiretty,Defaults !requiretty,' /etc/sudoers
|
||||
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/vagrant-nopasswd
|
||||
sed -i 's/.*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config
|
||||
mkdir -m 0700 -p ~vagrant/.ssh
|
||||
cat > ~vagrant/.ssh/authorized_keys << EOKEYS
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key
|
||||
EOKEYS
|
||||
chmod 600 ~vagrant/.ssh/authorized_keys
|
||||
chown -R vagrant:vagrant ~vagrant/.ssh/
|
||||
|
||||
%end
|
||||
|
||||
157
fedora-atomic.ks
Normal file
157
fedora-atomic.ks
Normal file
@@ -0,0 +1,157 @@
|
||||
# Fedora Atomic Host is the Fedora version of the "Atomic Host" pattern
|
||||
# from [Project Atomic](http://www.projectatomic.io/).
|
||||
|
||||
# This kickstart is used for cloud/virt images, and uses cloud-init
|
||||
# to bootstrap authentication, just like Fedora Cloud Base. (Also note the
|
||||
# fedora-atomic-vagrant.ks kickstart inherits from this).
|
||||
|
||||
# One very important thing to understand is that this image contains the same
|
||||
# OSTree commit as will be used on bare metal installations - Fedora Atomic Host
|
||||
# also has an ISO. One difference though is that cloud-init isn't enabled for
|
||||
# bare metal. When processing this kickstart then, Anaconda isn't actually
|
||||
# installing packages - it's just replicating a "pre-assembled" tree from
|
||||
# rpm-ostree.
|
||||
|
||||
# Basically, the `ostreesetup` verb replaces the traditional `%packages`
|
||||
# section. For example, `rpm-ostree status` can show you the same checksum and
|
||||
# version from an ISO install and this cloud image - it's the same bits.
|
||||
|
||||
text # don't use cmdline -- https://github.com/rhinstaller/anaconda/issues/931
|
||||
lang en_US.UTF-8
|
||||
keyboard us
|
||||
timezone --utc Etc/UTC
|
||||
|
||||
auth --useshadow --passalgo=sha512
|
||||
selinux --enforcing
|
||||
rootpw --lock --iscrypted locked
|
||||
|
||||
# Explicitly disable firewall since cloud providers generally provide
|
||||
# higher level firewall constructs (i.e. security groups).
|
||||
firewall --disabled
|
||||
|
||||
# console=ttyAMA0 and console=hvc0 as kernel boot parameter to see
|
||||
# kernel boot messages on serial console as well on aarch64 and
|
||||
# ppc64le respectively.
|
||||
# https://pagure.io/atomic-wg/issue/347
|
||||
bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 console=ttyAMA0 console=hvc0 net.ifnames=0"
|
||||
|
||||
network --bootproto=dhcp --device=link --activate --onboot=on
|
||||
services --enabled=sshd,cloud-init,cloud-init-local,cloud-config,cloud-final
|
||||
|
||||
zerombr
|
||||
clearpart --all
|
||||
# Implement: https://pagure.io/atomic-wg/issue/281
|
||||
# The bare metal layout currently inherits from fedora server and is in
|
||||
# https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/installclasses/fedora_atomic_host.py
|
||||
# However, the disk size is currently just 6GB for the cloud image (defined in pungi-fedora). So the
|
||||
# "15GB, rest unallocated" model doesn't make sense. The Vagrant box is 40GB (apparently a number of
|
||||
# Vagrant boxes come big and rely on thin provisioning).
|
||||
# In both cases, it's simplest to just fill all the disk space.
|
||||
#
|
||||
# Use reqpart to create hardware platform specific partitions
|
||||
# https://pagure.io/atomic-wg/issue/299
|
||||
reqpart --add-boot
|
||||
part pv.01 --grow
|
||||
volgroup atomicos pv.01
|
||||
# Start from 3GB as we did before, since we just need a size. But we do --grow to fill all space.
|
||||
logvol / --size=3000 --grow --fstype="xfs" --name=root --vgname=atomicos
|
||||
|
||||
# Equivalent of %include fedora-repo.ks
|
||||
# Pull from the ostree repo that was created during the compose
|
||||
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://kojipkgs.fedoraproject.org/compose/atomic/repo/ --ref=fedora/29/${basearch}/atomic-host
|
||||
|
||||
reboot
|
||||
|
||||
%post --erroronfail
|
||||
# See https://github.com/projectatomic/rpm-ostree/issues/42
|
||||
# Set the ostree repo to the location we want users to upgrade from
|
||||
# This location is where the compose gets synced to after the compose
|
||||
# is done.
|
||||
ostree remote delete fedora-atomic
|
||||
ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-29-primary fedora-atomic 'https://kojipkgs.fedoraproject.org/atomic/repo/'
|
||||
|
||||
# older versions of livecd-tools do not follow "rootpw --lock" line above
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=964299
|
||||
passwd -l root
|
||||
|
||||
# Work around https://bugzilla.redhat.com/show_bug.cgi?id=1193590
|
||||
cp /etc/skel/.bash* /var/roothome
|
||||
|
||||
# Configure docker-storage-setup to resize the partition table on boot
|
||||
# and extend the root filesystem to fill it.
|
||||
# https://pagure.io/atomic-wg/issue/343
|
||||
echo 'GROWPART=true' >> /etc/sysconfig/docker-storage-setup
|
||||
echo 'ROOT_SIZE=+100%FREE' >> /etc/sysconfig/docker-storage-setup
|
||||
|
||||
echo -n "Getty fixes"
|
||||
# although we want console output going to the serial console, we don't
|
||||
# actually have the opportunity to login there. FIX.
|
||||
# we don't really need to auto-spawn _any_ gettys.
|
||||
sed -i '/^#NAutoVTs=.*/ a\
|
||||
NAutoVTs=0' /etc/systemd/logind.conf
|
||||
|
||||
echo -n "Network fixes"
|
||||
# initscripts don't like this file to be missing.
|
||||
cat > /etc/sysconfig/network << EOF
|
||||
NETWORKING=yes
|
||||
NOZEROCONF=yes
|
||||
EOF
|
||||
|
||||
# Remove any persistent NIC rules generated by udev
|
||||
rm -vf /etc/udev/rules.d/*persistent-net*.rules
|
||||
# And ensure that we will do DHCP on eth0 on startup
|
||||
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF
|
||||
DEVICE="eth0"
|
||||
BOOTPROTO="dhcp"
|
||||
ONBOOT="yes"
|
||||
TYPE="Ethernet"
|
||||
PERSISTENT_DHCLIENT="yes"
|
||||
EOF
|
||||
|
||||
# Because memory is scarce resource in most cloud/virt environments,
|
||||
# and because this impedes forensics, we are differing from the Fedora
|
||||
# default of having /tmp on tmpfs.
|
||||
echo "Disabling tmpfs for /tmp."
|
||||
systemctl mask tmp.mount
|
||||
|
||||
# Uncomment this if you want to use cloud init but suppress the creation
|
||||
# of an "ec2-user" account. This will, in the absence of further config,
|
||||
# cause the ssh key from a metadata source to be put in the root account.
|
||||
#cat <<EOF > /etc/cloud/cloud.cfg.d/50_suppress_ec2-user_use_root.cfg
|
||||
#users: []
|
||||
#disable_root: 0
|
||||
#EOF
|
||||
|
||||
echo "Removing random-seed so it's not the same in every image."
|
||||
rm -f /var/lib/systemd/random-seed
|
||||
|
||||
echo "Packages within this cloud image:"
|
||||
echo "-----------------------------------------------------------------------"
|
||||
rpm -qa
|
||||
echo "-----------------------------------------------------------------------"
|
||||
# Note that running rpm recreates the rpm db files which aren't needed/wanted
|
||||
rm -f /var/lib/rpm/__db*
|
||||
|
||||
echo "Zeroing out empty space."
|
||||
# This forces the filesystem to reclaim space from deleted files
|
||||
dd bs=1M if=/dev/zero of=/var/tmp/zeros || :
|
||||
rm -f /var/tmp/zeros
|
||||
echo "(Don't worry -- that out-of-space error was expected.)"
|
||||
|
||||
# For trac ticket https://pagure.io/atomic-wg/issue/128
|
||||
rm -f /etc/sysconfig/network-scripts/ifcfg-ens3
|
||||
|
||||
echo "Adding Developer Mode GRUB2 menu item."
|
||||
/usr/libexec/atomic-devmode/bootentry add
|
||||
|
||||
# Disable network service here, as doing it in the services line
|
||||
# fails due to RHBZ #1369794
|
||||
/sbin/chkconfig network off
|
||||
|
||||
# Anaconda is writing an /etc/resolv.conf from the install environment.
|
||||
# The system should start out with an empty file, otherwise cloud-init
|
||||
# will try to use this information and may error:
|
||||
# https://bugs.launchpad.net/cloud-init/+bug/1670052
|
||||
truncate -s 0 /etc/resolv.conf
|
||||
|
||||
%end
|
||||
@@ -14,6 +14,6 @@
|
||||
parole
|
||||
|
||||
# extra backgrounds
|
||||
f30-backgrounds-extras-gnome
|
||||
f29-backgrounds-extras-gnome
|
||||
|
||||
%end
|
||||
|
||||
@@ -137,7 +137,7 @@ echo "Removing firewalld."
|
||||
# not work when package was installed by Anaconda instead of command line.
|
||||
# Also -- check if this is still even needed with new anaconda -- disabled
|
||||
# firewall should _not_ pull in this package.
|
||||
# dnf -C -y remove "firewalld*" --setopt="clean_requirements_on_remove=1"
|
||||
# yum -C -y remove "firewalld*" --setopt="clean_requirements_on_remove=1"
|
||||
dnf -C -y erase "firewalld*"
|
||||
|
||||
# Another one needed at install time but not after that, and it pulls
|
||||
|
||||
@@ -112,12 +112,12 @@ rpm -e linux-firmware
|
||||
# Remove firewalld; was supposed to be optional in F18+, but is required to
|
||||
# be present for install/image building.
|
||||
echo "Removing firewalld."
|
||||
dnf -C -y remove firewalld --setopt="clean_requirements_on_remove=1"
|
||||
yum -C -y remove firewalld --setopt="clean_requirements_on_remove=1"
|
||||
|
||||
# Another one needed at install time but not after that, and it pulls
|
||||
# in some unneeded deps (like, newt and slang)
|
||||
echo "Removing authconfig."
|
||||
dnf -C -y remove authconfig --setopt="clean_requirements_on_remove=1"
|
||||
yum -C -y remove authconfig --setopt="clean_requirements_on_remove=1"
|
||||
|
||||
echo -n "Getty fixes"
|
||||
# although we want console output going to the serial console, we don't
|
||||
@@ -176,10 +176,10 @@ echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||
echo "Removing random-seed so it's not the same in every image."
|
||||
rm -f /var/lib/systemd/random-seed
|
||||
|
||||
echo "Cleaning old dnf repodata."
|
||||
dnf history new
|
||||
dnf clean all
|
||||
truncate -c -s 0 /var/log/dnf.log
|
||||
echo "Cleaning old yum repodata."
|
||||
yum history new
|
||||
yum clean all
|
||||
truncate -c -s 0 /var/log/yum.log
|
||||
|
||||
echo "Import RPM GPG key"
|
||||
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
|
||||
@@ -204,7 +204,7 @@ dd if=/usr/share/syslinux/mbr.bin of=/dev/vda
|
||||
echo "Fixing SELinux contexts."
|
||||
touch /var/log/cron
|
||||
touch /var/log/boot.log
|
||||
mkdir -p /var/cache/dnf
|
||||
mkdir -p /var/cache/yum
|
||||
/usr/sbin/fixfiles -R -a restore
|
||||
|
||||
echo "Zeroing out empty space."
|
||||
|
||||
@@ -103,12 +103,12 @@ rpm -e linux-firmware
|
||||
# Remove firewalld; was supposed to be optional in F18+, but is required to
|
||||
# be present for install/image building.
|
||||
echo "Removing firewalld."
|
||||
dnf -C -y remove "firewalld*" --setopt="clean_requirements_on_remove=1"
|
||||
yum -C -y remove "firewalld*" --setopt="clean_requirements_on_remove=1"
|
||||
|
||||
# Another one needed at install time but not after that, and it pulls
|
||||
# in some unneeded deps (like, newt and slang)
|
||||
echo "Removing authconfig."
|
||||
dnf -C -y remove authconfig --setopt="clean_requirements_on_remove=1"
|
||||
yum -C -y remove authconfig --setopt="clean_requirements_on_remove=1"
|
||||
|
||||
echo -n "Getty fixes"
|
||||
# although we want console output going to the serial console, we don't
|
||||
@@ -167,10 +167,10 @@ echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||
echo "Removing random-seed so it's not the same in every image."
|
||||
rm -f /var/lib/systemd/random-seed
|
||||
|
||||
echo "Cleaning old dnf repodata."
|
||||
dnf history new
|
||||
dnf clean all
|
||||
truncate -c -s 0 /var/log/dnf.log
|
||||
echo "Cleaning old yum repodata."
|
||||
yum history new
|
||||
yum clean all
|
||||
truncate -c -s 0 /var/log/yum.log
|
||||
|
||||
echo "Import RPM GPG key"
|
||||
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
|
||||
@@ -196,7 +196,7 @@ dd if=/usr/share/syslinux/mbr.bin of=/dev/vda
|
||||
echo "Fixing SELinux contexts."
|
||||
touch /var/log/cron
|
||||
touch /var/log/boot.log
|
||||
mkdir -p /var/cache/dnf
|
||||
mkdir -p /var/cache/yum
|
||||
chattr -i /boot/extlinux/ldlinux.sys
|
||||
/usr/sbin/fixfiles -R -a restore
|
||||
chattr +i /boot/extlinux/ldlinux.sys
|
||||
|
||||
@@ -8,15 +8,12 @@ autopart --noswap
|
||||
# install the default groups for the server environment since installing the environment is not working
|
||||
@server-product
|
||||
@standard
|
||||
@core
|
||||
@headless-management
|
||||
@hardware-support
|
||||
@networkmanager-submodules
|
||||
|
||||
@container-management
|
||||
@domain-client
|
||||
@guest-agents
|
||||
@server-hardware-support
|
||||
-initial-setup-gui
|
||||
-generic-release*
|
||||
%end
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# See fedora-container-common.ks for details on how to hack on container image kickstarts
|
||||
# See docker-base-common.ks for details on how to hack on docker image kickstarts
|
||||
# This base is a stripped back Fedora image without python3/dnf.
|
||||
# If you need that use the standard base image.
|
||||
|
||||
%include fedora-container-common.ks
|
||||
%include fedora-docker-common.ks
|
||||
|
||||
%packages --excludedocs --instLangs=en --nocore --excludeWeakdeps
|
||||
microdnf
|
||||
@@ -1,7 +1,7 @@
|
||||
# See fedora-container-common.ks for details on how to hack on container image kickstarts
|
||||
# See docker-base-common.ks for details on how to hack on docker image kickstarts
|
||||
# This base is a standard Fedora image with python3 and dnf
|
||||
|
||||
%include fedora-container-common.ks
|
||||
%include fedora-docker-common.ks
|
||||
|
||||
%packages --excludedocs --instLangs=en --nocore
|
||||
rootfiles
|
||||
@@ -12,7 +12,7 @@ vim-minimal
|
||||
dnf
|
||||
dnf-yum # https://fedorahosted.org/fesco/ticket/1312#comment:29
|
||||
sssd-client
|
||||
sudo
|
||||
|
||||
%end
|
||||
|
||||
%post --erroronfail --log=/root/anaconda-post.log
|
||||
@@ -1,4 +1,4 @@
|
||||
# This is the common bits between Fedora Container base image.
|
||||
# This is the common bits between Fedora Docker base image.
|
||||
#
|
||||
# To keep this image minimal it only installs English language. You need to change
|
||||
# dnf configuration in order to enable other languages.
|
||||
@@ -12,8 +12,8 @@
|
||||
#
|
||||
# Then, once you have imagefactory and imagefactory-plugins installed, run:
|
||||
#
|
||||
# ksflatten -c fedora-container-base[-minimal].ks -o fedora-container-base-test.ks
|
||||
# imagefactory --debug target_image --template /path/to/fedora-atomic-rawhide.tdl --parameter offline_icicle true --file-parameter install_script $(pwd)/fedora-container-base-test.ks docker
|
||||
# ksflatten -c fedora-docker-base[-minimal].ks -o fedora-docker-base-test.ks
|
||||
# imagefactory --debug target_image --template /path/to/fedora-atomic-rawhide.tdl --parameter offline_icicle true --file-parameter install_script $(pwd)/fedora-docker-base-test.ks docker
|
||||
#
|
||||
|
||||
text # don't use cmdline -- https://github.com/rhinstaller/anaconda/issues/931
|
||||
@@ -30,9 +30,9 @@ clearpart --all
|
||||
autopart --noboot --nohome --noswap --nolvm
|
||||
|
||||
%packages --excludedocs --instLangs=en --nocore
|
||||
fedora-release-container
|
||||
fedora-release
|
||||
bash
|
||||
coreutils
|
||||
coreutils-single
|
||||
glibc-minimal-langpack
|
||||
libcrypt
|
||||
rpm
|
||||
@@ -49,7 +49,6 @@ util-linux
|
||||
-shared-mime-info
|
||||
-trousers
|
||||
-xkeyboard-config
|
||||
-grubby
|
||||
|
||||
%end
|
||||
|
||||
@@ -63,7 +62,7 @@ echo "%_install_langs $LANG" > /etc/rpm/macros.image-language-conf
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1400682
|
||||
echo "Import RPM GPG key"
|
||||
releasever=$(rpm -q --qf '%{version}\n' fedora-release-container)
|
||||
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
|
||||
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary
|
||||
|
||||
echo "# fstab intentionally empty for containers" > /etc/fstab
|
||||
@@ -10,7 +10,7 @@ selinux --enforcing
|
||||
rootpw --lock --iscrypted locked
|
||||
|
||||
# Add most common consoles console=ttyAMA0 console=ttyS0 console=ttyS1 as kernel boot parameter
|
||||
bootloader --timeout=1 --append="net.ifnames=0 modprobe.blacklist=vc4"
|
||||
bootloader --timeout=1 --append="console=tty1 console=ttyS0,115200n8 console=ttyS1,115200n8 console=ttyAMA0,115200n8 net.ifnames=0 modprobe.blacklist=vc4"
|
||||
|
||||
network --bootproto=dhcp --device=link --activate --onboot=on
|
||||
services --enabled=NetworkManager,sshd,rngd,initial-setup,zram-swap
|
||||
@@ -24,7 +24,7 @@ autopart --nohome --noswap --type=plain
|
||||
|
||||
# Equivalent of %include fedora-repo.ks
|
||||
# Pull from the ostree repo that was created during the compose
|
||||
ostreesetup --nogpg --osname=fedora-iot --remote=fedora-iot --url=https://kojipkgs.fedoraproject.org/compose/iot/repo/ --ref=fedora/devel/${basearch}/iot
|
||||
ostreesetup --nogpg --osname=fedora-iot --remote=fedora-iot --url=https://kojipkgs.fedoraproject.org/compose/iot/repo/ --ref=fedora/29/${basearch}/iot
|
||||
|
||||
reboot
|
||||
|
||||
@@ -44,22 +44,19 @@ fi
|
||||
|
||||
# Set the origin to the "main ref", distinct from /updates/ which is where bodhi writes.
|
||||
# We want consumers of this image to track the two week releases.
|
||||
ostree admin set-origin --index 0 fedora-iot https://dl.fedoraproject.org/iot/repo/ "fedora/devel/${arch}/iot"
|
||||
ostree admin set-origin --index 0 fedora-iot https://kojipkgs.fedoraproject.org/iot/29/ "fedora/29/${arch}/iot"
|
||||
|
||||
# Make sure the ref we're supposedly sitting on (according
|
||||
# to the updated origin) exists.
|
||||
ostree refs "fedora-iot:fedora/devel/${arch}/iot" --create "fedora-iot:fedora/devel/${arch}/iot"
|
||||
ostree refs "fedora-iot:fedora/29/${arch}/iot" --create "fedora-iot:fedora/29/${arch}/iot"
|
||||
|
||||
# Remove the old ref so that the commit eventually gets cleaned up.
|
||||
ostree refs "fedora-iot:fedora/devel/${arch}/iot" --delete
|
||||
ostree refs "fedora-iot:fedora/29/${arch}/iot" --delete
|
||||
|
||||
# delete/add the remote with new options to enable gpg verification
|
||||
# and to point them at the cdn url
|
||||
ostree remote delete fedora-iot
|
||||
ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-iot-2019 --set=contenturl=mirrorlist=https://ostree.fedoraproject.org/iot/mirrorlist fedora-iot 'https://ostree.fedoraproject.org/iot'
|
||||
|
||||
# We're gettin a stray console= from somewhere, work around it
|
||||
rpm-ostree kargs --delete=console=tty0
|
||||
ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-29-primary fedora-iot 'https://dl.fedoraproject.org/iot/repo/'
|
||||
|
||||
# older versions of livecd-tools do not follow "rootpw --lock" line above
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=964299
|
||||
@@ -108,6 +105,10 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-ens3
|
||||
echo "Adding Developer Mode GRUB2 menu item."
|
||||
/usr/libexec/atomic-devmode/bootentry add
|
||||
|
||||
# Disable network service here, as doing it in the services line
|
||||
# fails due to RHBZ #1369794
|
||||
/sbin/chkconfig network off
|
||||
|
||||
# Anaconda is writing an /etc/resolv.conf from the install environment.
|
||||
# The system should start out with an empty file, otherwise cloud-init
|
||||
# will try to use this information and may error:
|
||||
|
||||
@@ -50,7 +50,6 @@ memtest86+
|
||||
# The point of a live image is to install
|
||||
anaconda
|
||||
anaconda-install-env-deps
|
||||
anaconda-live
|
||||
@anaconda-tools
|
||||
|
||||
# Need aajohan-comfortaa-fonts for the SVG rnotes images
|
||||
@@ -62,10 +61,6 @@ syslinux
|
||||
|
||||
# anaconda needs the locales available to run for different locales
|
||||
glibc-all-langpacks
|
||||
|
||||
# no longer in @core since 2018-10, but needed for livesys script
|
||||
initscripts
|
||||
chkconfig
|
||||
%end
|
||||
|
||||
%post
|
||||
@@ -347,19 +342,8 @@ 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
|
||||
# For livecd-creator builds
|
||||
if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi
|
||||
cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS
|
||||
|
||||
# For lorax/livemedia-creator builds
|
||||
sed -i '
|
||||
/## make boot.iso/ i\
|
||||
# Add livecd-iso-to-disk script to .iso filesystem at /LiveOS/\
|
||||
<% f = "usr/bin/livecd-iso-to-disk" %>\
|
||||
%if exists(f):\
|
||||
install ${f} ${LIVEDIR}/${f|basename}\
|
||||
%endif\
|
||||
' /usr/share/lorax/templates.d/99-generic/live/x86.tmpl
|
||||
if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi
|
||||
cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS
|
||||
fi
|
||||
|
||||
%end
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
%include fedora-live-base.ks
|
||||
%include fedora-cinnamon-common.ks
|
||||
|
||||
part / --size=8192
|
||||
part / --size=6144
|
||||
|
||||
%post
|
||||
# cinnamon configuration
|
||||
|
||||
@@ -32,18 +32,14 @@ powerline
|
||||
powerline-fonts
|
||||
|
||||
# Extra wallpapers
|
||||
f28-backgrounds-extras-base
|
||||
f28-backgrounds-extras-gnome
|
||||
# f26-backgrounds-extras-base
|
||||
# f26-backgrounds-extras-gnome
|
||||
|
||||
# removal of unneeded applications
|
||||
-gnome-boxes
|
||||
-eog
|
||||
-rdesktop
|
||||
|
||||
# temporarily removing conflicting application
|
||||
-LuxRender-blender
|
||||
-mypaint
|
||||
|
||||
%end
|
||||
|
||||
%post
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
# fedora-livedvd-games.ks
|
||||
#
|
||||
# Maintainer(s):
|
||||
# - Darryl T. Agostinelli <dagostinelli@gmail.com>
|
||||
# - Formerly maintained by Bruno Wolff III <bruno@wolff.to>
|
||||
# - Bruno Wolff III <bruno@wolff.to>
|
||||
# - Formerly maintained by Rahul Sundaram
|
||||
|
||||
%include fedora-live-xfce.ks
|
||||
@@ -46,10 +45,10 @@ extremetuxracer
|
||||
freeciv
|
||||
freecol
|
||||
freedoom
|
||||
# freedroidrpg # Cut for size
|
||||
freedroidrpg
|
||||
frozen-bubble
|
||||
gl-117
|
||||
# glob2 - currently broken
|
||||
glob2
|
||||
lincity-ng
|
||||
tmw
|
||||
#maniadrive - currently broken
|
||||
@@ -67,8 +66,8 @@ ultimatestunts
|
||||
warzone2100
|
||||
wesnoth
|
||||
# worminator # Would pull in fluid-soundfont-lite-patches
|
||||
# warmux # Cut for size
|
||||
# xmoto # Cut for size
|
||||
warmux
|
||||
xmoto
|
||||
|
||||
# traditional (small)
|
||||
|
||||
@@ -100,7 +99,7 @@ pachi
|
||||
pioneers
|
||||
quarry
|
||||
# Ri-li cut for size
|
||||
# rogue # abandoned. Someone pick it up so we can include it again!
|
||||
rogue
|
||||
# scorchwentbonkers # Would pull in fluid-soundfont-lite-patches
|
||||
seahorse-adventures
|
||||
solarwolf
|
||||
@@ -182,13 +181,15 @@ tuxtype2
|
||||
# kde based games
|
||||
taxipilot
|
||||
|
||||
# compilations (we are avoiding compilations, rare exceptions)
|
||||
bsd-games
|
||||
|
||||
# utilities
|
||||
|
||||
games-menus
|
||||
|
||||
# Note some stuff I don't want pulled into the games spin.
|
||||
|
||||
# No compilations of games as I want to only include games that at least
|
||||
# someone thought were good within a genre.
|
||||
|
||||
# Nothing should be downloading data to play.
|
||||
-autodownloader
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
%include fedora-mate-common.ks
|
||||
%include fedora-live-minimization.ks
|
||||
|
||||
part / --size 7168
|
||||
part / --size 6144
|
||||
|
||||
%post
|
||||
cat >> /etc/rc.d/init.d/livesys << EOF
|
||||
|
||||
@@ -5,7 +5,5 @@
|
||||
# The Workstion based Python Classroom Lab
|
||||
|
||||
%include fedora-live-workstation.ks
|
||||
%include fedora-live-minimization.ks
|
||||
%include fedora-python-classroom-gnome-common.ks
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1695796
|
||||
part / --size 7168
|
||||
|
||||
@@ -19,7 +19,7 @@ gnome-keyring
|
||||
|
||||
|
||||
# l10n
|
||||
@lxqt-l10n
|
||||
lxqt-l10n
|
||||
lximage-qt-l10n
|
||||
obconf-qt-l10n
|
||||
pavucontrol-qt-l10n
|
||||
@@ -27,7 +27,7 @@ pavucontrol-qt-l10n
|
||||
# MP3
|
||||
gstreamer1-plugin-mpg123
|
||||
|
||||
# Text Editor
|
||||
# Editor
|
||||
enki
|
||||
|
||||
# remove unneeded stuff to get a lightweight system
|
||||
@@ -45,8 +45,7 @@ wqy-microhei-fonts # a compact CJK font, to replace:
|
||||
-@input-methods
|
||||
-scim*
|
||||
-m17n*
|
||||
# Temporary include ibus to workaround RHBZ 1633225
|
||||
# -ibus*
|
||||
-ibus*
|
||||
-iok
|
||||
|
||||
# Fix https://bugzilla.redhat.com/show_bug.cgi?id=1429132
|
||||
|
||||
70
fedora-modular-container-base-minimal.ks
Normal file
70
fedora-modular-container-base-minimal.ks
Normal file
@@ -0,0 +1,70 @@
|
||||
# See fedora-modular-container-common.ks for details on how to hack on container image kickstarts
|
||||
# This base is a stripped back Fedora image without python3/dnf.
|
||||
# If you need that use the standard base image.
|
||||
|
||||
%include fedora-modular-container-common.ks
|
||||
|
||||
%packages --excludedocs --instLangs=en --nocore --excludeWeakdeps
|
||||
microdnf
|
||||
|
||||
%end
|
||||
|
||||
%post --erroronfail --log=/root/anaconda-post.log
|
||||
# remove some random help txt files
|
||||
rm -fv usr/share/gnupg/help*.txt
|
||||
|
||||
# Pruning random things
|
||||
rm usr/lib/rpm/rpm.daily
|
||||
rm -rfv usr/lib64/nss/unsupported-tools/ # unsupported
|
||||
|
||||
# Statically linked crap
|
||||
rm -fv usr/sbin/{glibc_post_upgrade.x86_64,sln}
|
||||
ln usr/bin/ln usr/sbin/sln
|
||||
|
||||
# Remove some dnf info
|
||||
rm -rfv /var/lib/dnf
|
||||
|
||||
# don't need icons
|
||||
rm -rfv /usr/share/icons/*
|
||||
|
||||
#some random not-that-useful binaries
|
||||
rm -fv /usr/bin/pinky
|
||||
|
||||
# we lose presets by removing /usr/lib/systemd but we do not care
|
||||
rm -rfv /usr/lib/systemd
|
||||
|
||||
# if you want to change the timezone, bind-mount it from the host or reinstall tzdata
|
||||
rm -fv /etc/localtime
|
||||
mv /usr/share/zoneinfo/UTC /etc/localtime
|
||||
rm -rfv /usr/share/zoneinfo
|
||||
|
||||
# Final pruning
|
||||
rm -rfv /var/cache/* /var/log/* /tmp/*
|
||||
|
||||
%end
|
||||
|
||||
%post --nochroot --erroronfail --log=/mnt/sysimage/root/anaconda-post-nochroot.log
|
||||
set -eux
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1343138
|
||||
# Fix /run/lock breakage since it's not tmpfs in container
|
||||
# This unmounts /run (tmpfs) and then recreates the files
|
||||
# in the /run directory on the root filesystem of the container
|
||||
# NOTE: run this in nochroot because "umount" does not exist in chroot
|
||||
umount /mnt/sysimage/run
|
||||
# The file that specifies the /run/lock tmpfile is
|
||||
# /usr/lib/tmpfiles.d/legacy.conf, which is part of the systemd
|
||||
# rpm that isn't included in this image. We'll create the /run/lock
|
||||
# file here manually with the settings from legacy.conf
|
||||
# NOTE: chroot to run "install" because it is not in anaconda env
|
||||
chroot /mnt/sysimage install -d /run/lock -m 0755 -o root -g root
|
||||
|
||||
|
||||
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1051816
|
||||
# NOTE: run this in nochroot because "find" does not exist in chroot
|
||||
KEEPLANG=en_US
|
||||
for dir in locale i18n; do
|
||||
find /mnt/sysimage/usr/share/${dir} -mindepth 1 -maxdepth 1 -type d -not \( -name "${KEEPLANG}" -o -name POSIX \) -exec rm -rfv {} +
|
||||
done
|
||||
|
||||
%end
|
||||
38
fedora-modular-container-base.ks
Normal file
38
fedora-modular-container-base.ks
Normal file
@@ -0,0 +1,38 @@
|
||||
# See fedora-modular-container-common.ks for details on how to hack on container image kickstarts
|
||||
# This base is a standard Fedora image with python3 and dnf
|
||||
|
||||
%include fedora-modular-container-common.ks
|
||||
|
||||
%packages --excludedocs --instLangs=en --nocore
|
||||
rootfiles
|
||||
tar # https://bugzilla.redhat.com/show_bug.cgi?id=1409920
|
||||
vim-minimal
|
||||
dnf
|
||||
dnf-yum # https://pagure.io/fesco/ticket/1312#comment:29
|
||||
sssd-client
|
||||
|
||||
%end
|
||||
|
||||
%post --erroronfail --log=/root/anaconda-post.log
|
||||
# remove some extraneous files
|
||||
rm -rf /var/cache/dnf/*
|
||||
rm -rf /tmp/*
|
||||
|
||||
#Mask mount units and getty service so that we don't get login prompt
|
||||
systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1343138
|
||||
# Fix /run/lock breakage since it's not tmpfs in container
|
||||
# This unmounts /run (tmpfs) and then recreates the files
|
||||
# in the /run directory on the root filesystem of the container
|
||||
#
|
||||
# We ignore the return code of the systemd-tmpfiles command because
|
||||
# at this point we have already removed the /etc/machine-id and all
|
||||
# tmpfiles lines with %m in them will fail and cause a bad return
|
||||
# code. Example failure:
|
||||
# [/usr/lib/tmpfiles.d/systemd.conf:26] Failed to replace specifiers: /run/log/journal/%m
|
||||
#
|
||||
umount /run
|
||||
systemd-tmpfiles --prefix=/run/ --prefix=/var/run/ --create --boot || true
|
||||
|
||||
%end
|
||||
75
fedora-modular-container-common.ks
Normal file
75
fedora-modular-container-common.ks
Normal file
@@ -0,0 +1,75 @@
|
||||
# This is the common bits between Container base images based on Modular Fedora.
|
||||
#
|
||||
# To keep this image minimal it only installs English language. You need to change
|
||||
# dnf configuration in order to enable other languages.
|
||||
#
|
||||
# ## Hacking on this image ###
|
||||
# This kickstart is processed using Anaconda-in-ImageFactory (via Koji typically),
|
||||
# but you can run imagefactory locally too.
|
||||
#
|
||||
# To do so, testing local changes, first you'll need a TDL file. I store one here:
|
||||
# https://pagure.io/fedora-atomic/raw/master/f/fedora-atomic-rawhide.tdl
|
||||
#
|
||||
# Then, once you have imagefactory and imagefactory-plugins installed, run:
|
||||
#
|
||||
# ksflatten -c fedora-modular-base[-minimal].ks -o fedora-modular-base-test.ks
|
||||
# imagefactory --debug target_image --template /path/to/fedora-atomic-rawhide.tdl --parameter offline_icicle true --file-parameter install_script $(pwd)/fedora-modular-base-test.ks modular
|
||||
#
|
||||
|
||||
text # don't use cmdline -- https://github.com/rhinstaller/anaconda/issues/931
|
||||
bootloader --disabled
|
||||
timezone --isUtc --nontp Etc/UTC
|
||||
rootpw --lock --iscrypted locked
|
||||
keyboard us
|
||||
network --bootproto=dhcp --device=link --activate --onboot=on
|
||||
reboot
|
||||
|
||||
# boot partitions are irrelevant as the final container image is a tarball
|
||||
zerombr
|
||||
clearpart --all
|
||||
autopart --nohome --noswap --nolvm
|
||||
|
||||
%packages --excludedocs --instLangs=en --nocore
|
||||
fedora-modular-release
|
||||
bash
|
||||
coreutils-single
|
||||
glibc-minimal-langpack
|
||||
libcrypt
|
||||
rpm
|
||||
shadow-utils
|
||||
sssd-client
|
||||
util-linux
|
||||
-kernel
|
||||
-dosfstools
|
||||
-e2fsprogs
|
||||
-fuse-libs
|
||||
-gnupg2-smime
|
||||
-libss # used by e2fsprogs
|
||||
-libusbx
|
||||
-pinentry
|
||||
-shared-mime-info
|
||||
-trousers
|
||||
-xkeyboard-config
|
||||
|
||||
%end
|
||||
|
||||
%post --erroronfail --log=/root/anaconda-post.log
|
||||
set -eux
|
||||
|
||||
# Set install langs macro so that new rpms that get installed will
|
||||
# only install langs that we limit it to.
|
||||
LANG="en_US"
|
||||
echo "%_install_langs $LANG" > /etc/rpm/macros.image-language-conf
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1400682
|
||||
echo "Import RPM GPG key"
|
||||
releasever=$(rpm -q --qf '%{version}\n' fedora-modular-release)
|
||||
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary
|
||||
|
||||
echo "# fstab intentionally empty for containers" > /etc/fstab
|
||||
|
||||
# Remove machine-id on pre generated images
|
||||
rm -f /etc/machine-id
|
||||
touch /etc/machine-id
|
||||
|
||||
%end
|
||||
@@ -17,8 +17,6 @@ wget
|
||||
-python33
|
||||
-python34
|
||||
-python35
|
||||
-python36
|
||||
-python38
|
||||
-pypy
|
||||
|
||||
%end
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
%include fedora-python-classroom-common.ks
|
||||
|
||||
%packages
|
||||
ninja-ide
|
||||
emacs
|
||||
python3-matplotlib-tk
|
||||
python3-pillow-tk
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Exactly one of the following should be uncommented
|
||||
|
||||
# For the master branch the following should be uncommented
|
||||
%include fedora-repo-rawhide.ks
|
||||
#%include fedora-repo-rawhide.ks
|
||||
|
||||
# For non-master branches the following should be uncommented
|
||||
# %include fedora-repo-not-rawhide.ks
|
||||
%include fedora-repo-not-rawhide.ks
|
||||
|
||||
@@ -28,6 +28,14 @@ armadillo-devel
|
||||
ddd
|
||||
valgrind
|
||||
|
||||
#python 2 tools/libraries not included from the groups
|
||||
python2-tools
|
||||
python-ipython
|
||||
python-ipython-console
|
||||
python-ipython-notebook
|
||||
sympy
|
||||
python-networkx
|
||||
python-pandas
|
||||
|
||||
#python 3 and tools/libraries not included from the groups
|
||||
python3
|
||||
@@ -43,6 +51,8 @@ python3-networkx
|
||||
python3-pandas
|
||||
|
||||
# matplotlib backends
|
||||
python-matplotlib-qt4
|
||||
python-matplotlib-tk
|
||||
python3-matplotlib-qt4
|
||||
python3-matplotlib-tk
|
||||
|
||||
@@ -60,16 +70,14 @@ rkward
|
||||
qtoctave
|
||||
|
||||
# julia
|
||||
# Comment out till build failure is sorted
|
||||
# Comment out till https://koji.fedoraproject.org/koji/buildinfo?buildID=1135023 is fixed
|
||||
# julia
|
||||
# julia-doc
|
||||
|
||||
# IDEs for the IDE folks
|
||||
@eclipse
|
||||
|
||||
# Workaround for https://pagure.io/releng/issue/7814
|
||||
# Workaround for: https://pagure.io/releng/issue/7814
|
||||
-eclipse-linuxtools-vagrant
|
||||
|
||||
spyder
|
||||
|
||||
#writing & publishing
|
||||
@@ -91,6 +99,7 @@ openmpi
|
||||
openmpi-devel
|
||||
valgrind-openmpi
|
||||
libgomp
|
||||
python-pp
|
||||
mpi4py-openmpi
|
||||
python3-mpi4py-openmpi
|
||||
|
||||
|
||||
@@ -165,4 +165,14 @@ automatic=true
|
||||
EOF
|
||||
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||
|
||||
# For lorax/livemedia-creator builds.
|
||||
sed -i '
|
||||
/## make boot.iso/ i\
|
||||
# Add livecd-iso-to-disk script to .iso filesystem at /LiveOS/\
|
||||
<% f = "usr/bin/livecd-iso-to-disk" %>\
|
||||
%if exists(f):\
|
||||
install ${f} ${LIVEDIR}/${f|basename}\
|
||||
%endif\
|
||||
' /usr/share/lorax/templates.d/99-generic/live/x86.tmpl
|
||||
|
||||
%end
|
||||
|
||||
@@ -11,7 +11,7 @@ timezone Europe/Zurich
|
||||
|
||||
%packages
|
||||
-gnome-blog
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -11,7 +11,7 @@ timezone Europe/Berlin
|
||||
|
||||
%packages
|
||||
-gnome-blog
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard fr-latin9
|
||||
timezone Europe/Paris
|
||||
|
||||
%packages
|
||||
langpacks-fr
|
||||
@french-support
|
||||
# exclude input methods:
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard jp
|
||||
timezone Asia/Tokyo
|
||||
|
||||
%packages
|
||||
langpacks-ja
|
||||
@japanese-support
|
||||
# exclude input methods except ibus:
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard us
|
||||
timezone Europe/Amsterdam
|
||||
|
||||
%packages
|
||||
langpacks-nl
|
||||
@dutch-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard br-abnt2
|
||||
timezone America/Sao_Paulo
|
||||
|
||||
%packages
|
||||
langpacks-pt_BR
|
||||
@brazilian-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard pt-latin1
|
||||
timezone Europe/Lisbon
|
||||
|
||||
%packages
|
||||
langpacks-pt
|
||||
@portuguese-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard ru
|
||||
timezone Europe/Moscow
|
||||
|
||||
%packages
|
||||
langpacks-ru
|
||||
@russian-support
|
||||
hunspell-ru
|
||||
|
||||
# exclude input methods
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard de-latin1-nodeadkeys
|
||||
timezone Europe/Berlin
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard jp
|
||||
timezone Asia/Tokyo
|
||||
|
||||
%packages
|
||||
langpacks-ja
|
||||
@japanese-support
|
||||
# exclude input methods except ibus:
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard sg-latin1-nodeadkeys
|
||||
timezone Europe/Zurich
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard de-latin1-nodeadkeys
|
||||
timezone Europe/Berlin
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
|
||||
# don't install unnecessary input methods
|
||||
-scim*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard fr-latin9
|
||||
timezone Europe/Paris
|
||||
|
||||
%packages
|
||||
langpacks-fr
|
||||
@french-support
|
||||
# exclude input methods:
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard jp
|
||||
timezone Asia/Tokyo
|
||||
|
||||
%packages
|
||||
langpacks-ja
|
||||
@japanese-support
|
||||
# exclude input methods except ibus:
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard us
|
||||
timezone Europe/Amsterdam
|
||||
|
||||
%packages
|
||||
langpacks-nl
|
||||
@dutch-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard pt-latin1
|
||||
timezone Europe/Lisbon
|
||||
|
||||
%packages
|
||||
langpacks-pt
|
||||
@portuguese-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard ru
|
||||
timezone Europe/Moscow
|
||||
|
||||
%packages
|
||||
langpacks-ru
|
||||
@russian-support
|
||||
hunspell-ru
|
||||
|
||||
# exclude input methods
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard sg-latin1-nodeadkeys
|
||||
timezone Europe/Zurich
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
|
||||
# exclude input methods
|
||||
-ibus*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard de-latin1-nodeadkeys
|
||||
timezone Europe/Berlin
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
|
||||
# exclude input methods
|
||||
-ibus*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard fr-latin9
|
||||
timezone Europe/Paris
|
||||
|
||||
%packages
|
||||
langpacks-fr
|
||||
@french-support
|
||||
# exclude input methods:
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard jp
|
||||
timezone Asia/Tokyo
|
||||
|
||||
%packages
|
||||
langpacks-ja
|
||||
@japanese-support
|
||||
# exclude input methods except ibus:
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard ru
|
||||
timezone Europe/Moscow
|
||||
|
||||
%packages
|
||||
langpacks-ru
|
||||
@russian-support
|
||||
hunspell-ru
|
||||
|
||||
# exclude input methods
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
# Maintainer(s):
|
||||
# - Fabian Affolter <fab at fedoraproject.org>
|
||||
|
||||
%include ../fedora-live-xfce.ks
|
||||
%include ../fedora-livecd-xfce.ks
|
||||
|
||||
lang de_DE
|
||||
keyboard sg-latin1-nodeadkeys
|
||||
timezone Europe/Zurich
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
# Maintainer(s):
|
||||
# - Fabian Affolter <fab at fedoraproject.org>
|
||||
|
||||
%include ../fedora-live-xfce.ks
|
||||
%include ../fedora-livecd-xfce.ks
|
||||
|
||||
lang de_DE.UTF-8
|
||||
keyboard de-latin1-nodeadkeys
|
||||
timezone Europe/Berlin
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
# Maintainer(s):
|
||||
# - Matthieu Saulnier <fantom@fedoraproject.org>
|
||||
|
||||
%include ../fedora-live-xfce.ks
|
||||
%include ../fedora-livecd-xfce.ks
|
||||
|
||||
lang fr_FR.UTF-8
|
||||
keyboard fr-latin9
|
||||
timezone Europe/Paris
|
||||
|
||||
%packages
|
||||
langpacks-fr
|
||||
@french-support
|
||||
# exclude input methods:
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -13,7 +13,7 @@ keyboard jp
|
||||
timezone Asia/Tokyo
|
||||
|
||||
%packages
|
||||
langpacks-ja
|
||||
@japanese-support
|
||||
# exclude input methods except ibus:
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
# Maintainer(s):
|
||||
# - Jeroen van Meeuwen <kanarip a fedoraunity.org>
|
||||
|
||||
%include ../fedora-live-xfce.ks
|
||||
%include ../fedora-livecd-xfce.ks
|
||||
|
||||
lang nl_NL
|
||||
keyboard us
|
||||
timezone Europe/Amsterdam
|
||||
|
||||
%packages
|
||||
langpacks-nl
|
||||
@dutch-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
# Maintainer(s):
|
||||
# - Pedro Silva <pedrofsilva a netcabo.pt>
|
||||
|
||||
%include ../fedora-live-xfce.ks
|
||||
%include ../fedora-livecd-xfce.ks
|
||||
|
||||
lang pt_PT.UTF-8
|
||||
keyboard pt-latin1
|
||||
timezone Europe/Lisbon
|
||||
|
||||
%packages
|
||||
langpacks-pt
|
||||
@portuguese-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
# Maintainer(s):
|
||||
# - Sergey Mihailov <sergey.mihailov at gmail.com>
|
||||
|
||||
%include ../fedora-live-xfce.ks
|
||||
%include ../fedora-livecd-xfce.ks
|
||||
|
||||
lang ru_RU.UTF-8
|
||||
keyboard ru
|
||||
timezone Europe/Moscow
|
||||
|
||||
%packages
|
||||
langpacks-ru
|
||||
@russian-support
|
||||
hunspell-ru
|
||||
|
||||
# exclude input methods
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard sg-latin1
|
||||
timezone Europe/Zurich
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard de-latin1-nodeadkeys
|
||||
timezone Europe/Berlin
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard us
|
||||
timezone Europe/Amsterdam
|
||||
|
||||
%packages
|
||||
langpacks-nl
|
||||
@dutch-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard pt-latin1
|
||||
timezone Europe/Lisbon
|
||||
|
||||
%packages
|
||||
langpacks-pt
|
||||
@portuguese-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard ru
|
||||
timezone Europe/Moscow
|
||||
|
||||
%packages
|
||||
langpacks-ru
|
||||
@russian-support
|
||||
hunspell-ru
|
||||
|
||||
# exclude input methods
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard sg-latin1
|
||||
timezone Europe/Zurich
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard de-latin1-nodeadkeys
|
||||
timezone Europe/Berlin
|
||||
|
||||
%packages
|
||||
langpacks-de
|
||||
@german-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
# fedora-livedvd-games-ja_JP.ks
|
||||
#
|
||||
# Description:
|
||||
# - Japanese Fedora Live Spin with the game Desktop Environment
|
||||
#
|
||||
# Maintainer(s):
|
||||
# - Mika Tsukada <mika.tsukada@miraclelinux.com>
|
||||
|
||||
%include ../fedora-live-games.ks
|
||||
|
||||
lang ja_JP.UTF-8
|
||||
keyboard ja
|
||||
timezone Asia/Tokyo
|
||||
|
||||
%packages
|
||||
langpacks-ja
|
||||
# exclude input methods except ibus:
|
||||
-m17n*
|
||||
-scim*
|
||||
-iok
|
||||
glibc-langpack-ja
|
||||
# ibus-stuff
|
||||
ibus-kkc
|
||||
ibus-mozc
|
||||
%end
|
||||
|
||||
%post
|
||||
cat > /etc/X11/xorg.conf.d/00-keyboard.conf << "EOF"
|
||||
# Read and parsed by systemd-localed. It's probably wise not to edit this file
|
||||
# manually too freely.
|
||||
Section "InputClass"
|
||||
Identifier "system-keyboard"
|
||||
MatchIsKeyboard "on"
|
||||
Option "XkbLayout" "jp"
|
||||
Option "XkbModel" "jp106"
|
||||
EndSection
|
||||
EOF
|
||||
%end
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard us
|
||||
timezone Europe/Amsterdam
|
||||
|
||||
%packages
|
||||
langpacks-nl
|
||||
@dutch-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard pt-latin1
|
||||
timezone Europe/Lisbon
|
||||
|
||||
%packages
|
||||
langpacks-pt
|
||||
@portuguese-support
|
||||
# exclude input methods
|
||||
-m17n*
|
||||
-scim*
|
||||
|
||||
@@ -10,7 +10,7 @@ keyboard ru
|
||||
timezone Europe/Moscow
|
||||
|
||||
%packages
|
||||
langpacks-ru
|
||||
@russian-support
|
||||
hunspell-ru
|
||||
|
||||
# exclude input methods
|
||||
|
||||
Reference in New Issue
Block a user