mirror of
https://pagure.io/fedora-kickstarts.git
synced 2025-12-10 17:10:31 +08:00
Compare commits
41 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc9e3b2cea | ||
|
|
6fbeb2efb0 | ||
|
|
a000cf7510 | ||
|
|
10450ca67b | ||
|
|
708668758a | ||
|
|
7ffe93ee98 | ||
|
|
fda88e6c42 | ||
|
|
734e000de5 | ||
|
|
96c9895671 | ||
|
|
edce50a60d | ||
|
|
9896e482f6 | ||
|
|
6bdafa1504 | ||
|
|
d24804e7dd | ||
|
|
64674d4aa9 | ||
|
|
75e8b4be1e | ||
|
|
715981648f | ||
|
|
bc25310222 | ||
|
|
65bd74e3b6 | ||
|
|
703a43e924 | ||
|
|
a12a6f48d2 | ||
|
|
8d1bc4d3a0 | ||
|
|
300323ea4e | ||
|
|
343df58f59 | ||
|
|
0d98964c73 | ||
|
|
ada1346a52 | ||
|
|
a58e75901f | ||
|
|
1841b368ce | ||
|
|
1fcebbbe22 | ||
|
|
34faea4b50 | ||
|
|
f1ae8a5722 | ||
|
|
a4943014a4 | ||
|
|
cc1577b32b | ||
|
|
497c78f729 | ||
|
|
ada43b9882 | ||
|
|
093733933f | ||
|
|
f4300791a2 | ||
|
|
d56b41ce0d | ||
|
|
e52d48c7b6 | ||
|
|
0465c86082 | ||
|
|
2e24ef369a | ||
|
|
bbc347a0e4 |
@@ -18,6 +18,6 @@ parole
|
|||||||
rhythmbox
|
rhythmbox
|
||||||
|
|
||||||
# extra backgrounds
|
# extra backgrounds
|
||||||
f35-backgrounds-extras-gnome
|
f36-backgrounds-extras-gnome
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ clearpart --all --initlabel --disklabel=gpt
|
|||||||
part prepboot --size=4 --fstype=prepboot
|
part prepboot --size=4 --fstype=prepboot
|
||||||
part biosboot --size=1 --fstype=biosboot
|
part biosboot --size=1 --fstype=biosboot
|
||||||
part /boot/efi --size=100 --fstype=efi
|
part /boot/efi --size=100 --fstype=efi
|
||||||
part /boot --size=500 --fstype=ext4 --label=boot
|
part /boot --size=1000 --fstype=ext4 --label=boot
|
||||||
part btrfs.007 --size=2000 --fstype=btrfs --grow
|
part btrfs.007 --size=2000 --fstype=btrfs --grow
|
||||||
btrfs none --label=fedora btrfs.007
|
btrfs none --label=fedora btrfs.007
|
||||||
btrfs /home --subvol --name=home LABEL=fedora
|
btrfs /home --subvol --name=home LABEL=fedora
|
||||||
|
|||||||
@@ -83,4 +83,6 @@ echo "# fstab intentionally empty for containers" > /etc/fstab
|
|||||||
rm -f /etc/machine-id
|
rm -f /etc/machine-id
|
||||||
touch /etc/machine-id
|
touch /etc/machine-id
|
||||||
|
|
||||||
|
echo "# resolv placeholder" > /etc/resolv.conf
|
||||||
|
chmod 644 /etc/resolv.conf
|
||||||
%end
|
%end
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ deja-dup
|
|||||||
deja-dup-nautilus
|
deja-dup-nautilus
|
||||||
|
|
||||||
# Add extra gnome applications
|
# Add extra gnome applications
|
||||||
gnome-books
|
#gnome-books
|
||||||
gnome-calendar
|
gnome-calendar
|
||||||
gnome-photos
|
gnome-photos
|
||||||
gnome-pomodoro
|
gnome-pomodoro
|
||||||
@@ -27,6 +27,5 @@ powerline-fonts
|
|||||||
# temporarily removing conflicting application
|
# temporarily removing conflicting application
|
||||||
-mypaint
|
-mypaint
|
||||||
-sparkleshare
|
-sparkleshare
|
||||||
-blender-luxcorerender
|
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
|||||||
@@ -93,4 +93,12 @@ touch /etc/machine-id
|
|||||||
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
||||||
rm -f /var/lib/rpm/__db*
|
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
|
%end
|
||||||
|
|||||||
@@ -122,12 +122,11 @@ subscription-manager-cockpit
|
|||||||
-langpacks-en
|
-langpacks-en
|
||||||
|
|
||||||
# We are building Fedora-ELN
|
# We are building Fedora-ELN
|
||||||
fedora-release
|
fedora-release-eln
|
||||||
fedora-repos
|
fedora-repos-eln
|
||||||
|
|
||||||
# Add rng-tools as source of entropy
|
# Add rng-tools as source of entropy
|
||||||
# TODO: Not available in Fedora-ELN yet.
|
rng-tools
|
||||||
# rng-tools
|
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ rootpw --lock --iscrypted locked
|
|||||||
bootloader --timeout=1 --append="modprobe.blacklist=vc4"
|
bootloader --timeout=1 --append="modprobe.blacklist=vc4"
|
||||||
|
|
||||||
network --bootproto=dhcp --device=link --activate --onboot=on
|
network --bootproto=dhcp --device=link --activate --onboot=on
|
||||||
services --enabled=NetworkManager,sshd,rngd
|
services --enabled=NetworkManager,sshd
|
||||||
|
|
||||||
zerombr
|
zerombr
|
||||||
clearpart --all --initlabel --disklabel=msdos
|
clearpart --all --initlabel --disklabel=msdos
|
||||||
@@ -19,7 +19,7 @@ autopart --nohome --noswap --type=plain
|
|||||||
|
|
||||||
# Equivalent of %include fedora-repo.ks
|
# Equivalent of %include fedora-repo.ks
|
||||||
# Pull from the ostree repo that was created during the compose
|
# 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/rawhide/${basearch}/iot
|
ostreesetup --nogpg --osname=fedora-iot --remote=fedora-iot --url=https://kojipkgs.fedoraproject.org/compose/iot/repo/ --ref=fedora/stable/${basearch}/iot
|
||||||
|
|
||||||
reboot
|
reboot
|
||||||
|
|
||||||
@@ -45,14 +45,14 @@ fi
|
|||||||
|
|
||||||
# Set the origin to the "main ref", distinct from /updates/ which is where bodhi writes.
|
# 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.
|
# 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/rawhide/${arch}/iot"
|
ostree admin set-origin --index 0 fedora-iot https://dl.fedoraproject.org/iot/repo/ "fedora/stable/${arch}/iot"
|
||||||
|
|
||||||
# Make sure the ref we're supposedly sitting on (according
|
# Make sure the ref we're supposedly sitting on (according
|
||||||
# to the updated origin) exists.
|
# to the updated origin) exists.
|
||||||
ostree refs "fedora-iot:fedora/rawhide/${arch}/iot" --create "fedora-iot:fedora/rawhide/${arch}/iot"
|
ostree refs "fedora-iot:fedora/stable/${arch}/iot" --create "fedora-iot:fedora/stable/${arch}/iot"
|
||||||
|
|
||||||
# Remove the old ref so that the commit eventually gets cleaned up.
|
# Remove the old ref so that the commit eventually gets cleaned up.
|
||||||
ostree refs "fedora-iot:fedora/rawhide/${arch}/iot" --delete
|
ostree refs "fedora-iot:fedora/stable/${arch}/iot" --delete
|
||||||
|
|
||||||
# delete/add the remote with new options to enable gpg verification
|
# delete/add the remote with new options to enable gpg verification
|
||||||
# and to point them at the cdn url
|
# and to point them at the cdn url
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
# remove input methods to free space
|
# remove input methods to free space
|
||||||
%packages
|
%packages
|
||||||
-@input-methods
|
|
||||||
-scim*
|
-scim*
|
||||||
-iok
|
-iok
|
||||||
%end
|
%end
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ astropy-tools
|
|||||||
ginga
|
ginga
|
||||||
python3-astropy
|
python3-astropy
|
||||||
python3-astroML
|
python3-astroML
|
||||||
python3-astroML-addons
|
|
||||||
python3-astroquery
|
python3-astroquery
|
||||||
python3-astroscrappy
|
python3-astroscrappy
|
||||||
python3-APLpy
|
python3-APLpy
|
||||||
@@ -113,7 +112,8 @@ gimp
|
|||||||
kst
|
kst
|
||||||
kst-docs
|
kst-docs
|
||||||
kst-fits
|
kst-fits
|
||||||
LabPlot
|
# LabPlot currently not installable due to #2044284
|
||||||
|
#LabPlot
|
||||||
|
|
||||||
#Misc. Utils
|
#Misc. Utils
|
||||||
ImageMagick
|
ImageMagick
|
||||||
|
|||||||
@@ -30,12 +30,6 @@ kernel
|
|||||||
kernel-modules
|
kernel-modules
|
||||||
kernel-modules-extra
|
kernel-modules-extra
|
||||||
|
|
||||||
# This was added a while ago, I think it falls into the category of
|
|
||||||
# "Diagnosis/recovery tool useful from a Live OS image". Leaving this untouched
|
|
||||||
# for now.
|
|
||||||
#memtest86+
|
|
||||||
@x86-baremetal-tools # memtest86+ is included
|
|
||||||
|
|
||||||
# The point of a live image is to install
|
# The point of a live image is to install
|
||||||
anaconda
|
anaconda
|
||||||
anaconda-install-env-deps
|
anaconda-install-env-deps
|
||||||
@@ -51,7 +45,6 @@ aajohan-comfortaa-fonts
|
|||||||
|
|
||||||
# Without this, initramfs generation during live image creation fails: #1242586
|
# Without this, initramfs generation during live image creation fails: #1242586
|
||||||
dracut-live
|
dracut-live
|
||||||
# syslinux is in @x86-baremetal-tools
|
|
||||||
|
|
||||||
# anaconda needs the locales available to run for different locales
|
# anaconda needs the locales available to run for different locales
|
||||||
glibc-all-langpacks
|
glibc-all-langpacks
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
# fedora-live-games.ks
|
# fedora-live-games.ks
|
||||||
#
|
#
|
||||||
# Maintainer:
|
# Maintainers:
|
||||||
# - Darryl T. Agostinelli <dagostinelli@gmail.com>
|
# - Darryl T. Agostinelli <dagostinelli@gmail.com>
|
||||||
# https://fedoraproject.org/wiki/User:Dagostinelli
|
# https://fedoraproject.org/wiki/User:Dagostinelli
|
||||||
#
|
#
|
||||||
|
# - Richard Anaya <richard.anaya@gmail.com>
|
||||||
|
# https://fedoraproject.org/wiki/User:Richardanaya
|
||||||
|
#
|
||||||
# Former Maintainers:
|
# Former Maintainers:
|
||||||
# - Bruno Wolff III <bruno@wolff.to>
|
# - Bruno Wolff III <bruno@wolff.to>
|
||||||
# https://fedoraproject.org/wiki/User:Bruno
|
# https://fedoraproject.org/wiki/User:Bruno
|
||||||
|
|||||||
@@ -67,6 +67,10 @@ mkdir -p /home/liveuser/.config/autostart
|
|||||||
cp -a /etc/xdg/autostart/org.kde.discover.notifier.desktop /home/liveuser/.config/autostart/
|
cp -a /etc/xdg/autostart/org.kde.discover.notifier.desktop /home/liveuser/.config/autostart/
|
||||||
echo 'Hidden=true' >> /home/liveuser/.config/autostart/org.kde.discover.notifier.desktop
|
echo 'Hidden=true' >> /home/liveuser/.config/autostart/org.kde.discover.notifier.desktop
|
||||||
|
|
||||||
|
# Disable plasma-welcome for now
|
||||||
|
# Cf. https://bugs.kde.org/show_bug.cgi?id=466282
|
||||||
|
rm -f /etc/xdg/autostart/org.kde.plasma-welcome.desktop
|
||||||
|
|
||||||
# Disable baloo
|
# Disable baloo
|
||||||
cat > /home/liveuser/.config/baloofilerc << BALOO_EOF
|
cat > /home/liveuser/.config/baloofilerc << BALOO_EOF
|
||||||
[Basic Settings]
|
[Basic Settings]
|
||||||
@@ -85,6 +89,15 @@ cat > /home/liveuser/.config/kwalletrc << KWALLET_EOL
|
|||||||
alreadyMigrated=true
|
alreadyMigrated=true
|
||||||
KWALLET_EOL
|
KWALLET_EOL
|
||||||
|
|
||||||
|
# Disable automount of 'known' devices
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2073708
|
||||||
|
cat > /home/liveuser/.config/kded_device_automounterrc << AUTOMOUNTER_EOF
|
||||||
|
[General]
|
||||||
|
AutomountEnabled=false
|
||||||
|
AutomountOnLogin=false
|
||||||
|
AutomountOnPlugin=false
|
||||||
|
AUTOMOUNTER_EOF
|
||||||
|
|
||||||
# make sure to set the right permissions and selinux contexts
|
# make sure to set the right permissions and selinux contexts
|
||||||
chown -R liveuser:liveuser /home/liveuser/
|
chown -R liveuser:liveuser /home/liveuser/
|
||||||
restorecon -R /home/liveuser/
|
restorecon -R /home/liveuser/
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
%include fedora-kde-minimization.ks
|
%include fedora-kde-minimization.ks
|
||||||
|
|
||||||
# DVD payload
|
# DVD payload
|
||||||
part / --size=7200
|
part / --size=7500
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%end
|
%end
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# Maintained by the Fedora Robotics SIG:
|
# Maintained by x3mboy and the Fedora Robotics SIG:
|
||||||
# http://fedoraproject.org/wiki/SIGs/Robotics
|
# https://fedoraproject.org/wiki/SIGs/Robotics
|
||||||
|
# mailto:x3mboy@fedoraproject.org
|
||||||
# mailto:robotics@lists.fedoraproject.org
|
# mailto:robotics@lists.fedoraproject.org
|
||||||
|
|
||||||
%include fedora-live-base.ks
|
%include fedora-live-base.ks
|
||||||
@@ -107,6 +108,7 @@ FOE
|
|||||||
# disable updates plugin
|
# disable updates plugin
|
||||||
cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
|
||||||
[org.gnome.software]
|
[org.gnome.software]
|
||||||
|
allow-updates=false
|
||||||
download-updates=false
|
download-updates=false
|
||||||
FOE
|
FOE
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
# Maintainers:
|
# Maintainers:
|
||||||
# Fabian Affolter <fab [AT] fedoraproject <dot> org>
|
# Fabian Affolter <fab [AT] fedoraproject <dot> org>
|
||||||
# Joerg Simon <jsimon [AT] fedoraproject <dot> org>
|
# Joerg Simon <jsimon [AT] fedoraproject <dot> org>
|
||||||
|
# JT Pennington <jt [AT] fedoraproject <dot> org>
|
||||||
# Acknowledgements:
|
# Acknowledgements:
|
||||||
# Fedora LiveCD Xfce Spin team - some work here was and will be inherited,
|
# Fedora LiveCD Xfce Spin team - some work here was and will be inherited,
|
||||||
# many thanks, especially to Christoph Wickert!
|
# many thanks, especially to Christoph Wickert!
|
||||||
|
|||||||
@@ -20,11 +20,12 @@ cat >> /etc/rc.d/init.d/livesys << EOF
|
|||||||
# disable gnome-software automatically downloading updates
|
# disable gnome-software automatically downloading updates
|
||||||
cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
|
||||||
[org.gnome.software]
|
[org.gnome.software]
|
||||||
|
allow-updates=false
|
||||||
download-updates=false
|
download-updates=false
|
||||||
FOE
|
FOE
|
||||||
|
|
||||||
# don't autostart gnome-software session service
|
# don't autostart gnome-software session service
|
||||||
rm -f /etc/xdg/autostart/gnome-software-service.desktop
|
rm -f /etc/xdg/autostart/org.gnome.Software.desktop
|
||||||
|
|
||||||
# disable the gnome-software shell search provider
|
# disable the gnome-software shell search provider
|
||||||
cat >> /usr/share/gnome-shell/search-providers/org.gnome.Software-search-provider.ini << FOE
|
cat >> /usr/share/gnome-shell/search-providers/org.gnome.Software-search-provider.ini << FOE
|
||||||
|
|||||||
@@ -20,6 +20,12 @@ fusion-icon
|
|||||||
# blacklist applications which breaks mate-desktop
|
# blacklist applications which breaks mate-desktop
|
||||||
-audacious
|
-audacious
|
||||||
|
|
||||||
|
# see https://bugzilla.redhat.com/show_bug.cgi?id=2068699
|
||||||
|
# and https://bugzilla.redhat.com/show_bug.cgi?id=1933494
|
||||||
|
# use earlyoom instead of systemd-oomd-defaults
|
||||||
|
earlyoom
|
||||||
|
-systemd-oomd-defaults
|
||||||
|
|
||||||
# office
|
# office
|
||||||
@libreoffice
|
@libreoffice
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
%include fedora-arm-base.ks
|
|
||||||
|
|
||||||
# server defaults to xfs for / so lets do so on arm also
|
|
||||||
part / --size=2500 --fstype xfs
|
|
||||||
|
|
||||||
%packages
|
|
||||||
# install the default groups for the server evironment since installing the environment is not working
|
|
||||||
@server-product
|
|
||||||
@standard
|
|
||||||
@headless-management
|
|
||||||
@container-management
|
|
||||||
@domain-client
|
|
||||||
-initial-setup-gui
|
|
||||||
-generic-release*
|
|
||||||
fedora-modular-release
|
|
||||||
%end
|
|
||||||
|
|
||||||
%post
|
|
||||||
|
|
||||||
# setup systemd to boot to the right runlevel
|
|
||||||
echo -n "Setting default runlevel to multiuser text mode"
|
|
||||||
rm -f /etc/systemd/system/default.target
|
|
||||||
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
|
||||||
echo .
|
|
||||||
|
|
||||||
%end
|
|
||||||
|
|
||||||
@@ -28,6 +28,7 @@ wget
|
|||||||
-python3.7
|
-python3.7
|
||||||
-python3.8
|
-python3.8
|
||||||
-python3.9
|
-python3.9
|
||||||
|
-python3.10
|
||||||
-pypy
|
-pypy
|
||||||
|
|
||||||
# Remove LaTeX, see https://bugzilla.redhat.com/show_bug.cgi?id=1862450
|
# Remove LaTeX, see https://bugzilla.redhat.com/show_bug.cgi?id=1862450
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ python3-pillow-tk
|
|||||||
# This is no longer workstation
|
# This is no longer workstation
|
||||||
-@workstation-product
|
-@workstation-product
|
||||||
|
|
||||||
|
# But we want to keep the Fedora desktop backgrounds
|
||||||
|
desktop-backgrounds-gnome
|
||||||
|
|
||||||
# Add a web browser
|
# Add a web browser
|
||||||
@firefox
|
@firefox
|
||||||
|
|
||||||
@@ -45,7 +48,7 @@ python3-pillow-tk
|
|||||||
|
|
||||||
# Drop the Java plugin and Java
|
# Drop the Java plugin and Java
|
||||||
-icedtea-web
|
-icedtea-web
|
||||||
-java*
|
-*openjdk*
|
||||||
|
|
||||||
# No printing
|
# No printing
|
||||||
-@printing
|
-@printing
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Exactly one of the following should be uncommented
|
# Exactly one of the following should be uncommented
|
||||||
|
|
||||||
# For the master branch 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
|
# For non-master branches the following should be uncommented
|
||||||
# %include fedora-repo-not-rawhide.ks
|
%include fedora-repo-not-rawhide.ks
|
||||||
|
|||||||
194
fedora-server-vm-full.ks
Normal file
194
fedora-server-vm-full.ks
Normal file
@@ -0,0 +1,194 @@
|
|||||||
|
# fedora-server-vm-full.ks (rel. 1.01)
|
||||||
|
# Kickstart file to build a Fedora Server Edition VM disk image.
|
||||||
|
# The image aims to resemble as close as technically possible the
|
||||||
|
# full features of a Fedora Server Edition in a virtual machine.
|
||||||
|
#
|
||||||
|
# The image uses GPT partition type as of default in Fedora 37
|
||||||
|
#
|
||||||
|
# At first boot it opens a test based basic configuration screen.
|
||||||
|
#
|
||||||
|
# This kickstart file is designed to be used with ImageFactory (in Koji).
|
||||||
|
#
|
||||||
|
# To build the image locally, you need to install ImageFactory and
|
||||||
|
# various additional helpers and configuration files.
|
||||||
|
# See Fedora Server Edition user documentation tutorial.
|
||||||
|
|
||||||
|
# Use text mode install
|
||||||
|
text
|
||||||
|
|
||||||
|
# Keyboard layouts
|
||||||
|
keyboard 'us'
|
||||||
|
|
||||||
|
# System language
|
||||||
|
lang en_US.UTF-8
|
||||||
|
|
||||||
|
# System timezone
|
||||||
|
# set time zone to GMT (Etcetera/UTC)
|
||||||
|
timezone Etc/UTC --utc
|
||||||
|
|
||||||
|
|
||||||
|
# Root password
|
||||||
|
rootpw --iscrypted --lock locked
|
||||||
|
|
||||||
|
# SELinux configuration
|
||||||
|
selinux --enforcing
|
||||||
|
|
||||||
|
|
||||||
|
# System bootloader configuration
|
||||||
|
bootloader --location=mbr --timeout=1 --append="console=tty1 console=ttyS0,115200n8"
|
||||||
|
|
||||||
|
# Network information
|
||||||
|
network --bootproto=dhcp --device=link --activate --onboot=on
|
||||||
|
|
||||||
|
# Firewall configuration
|
||||||
|
firewall --enabled --service=mdns
|
||||||
|
|
||||||
|
|
||||||
|
# System services
|
||||||
|
# message: error enabling initial-setup, initial-setup does not exist
|
||||||
|
services --enabled="sshd,NetworkManager,chronyd,initial-setup"
|
||||||
|
|
||||||
|
# Run the Setup Agent on first boot
|
||||||
|
firstboot --reconfig
|
||||||
|
|
||||||
|
# Partition Information. Use GPT by default (since Fedora 37)
|
||||||
|
# Resemble the Partitioning used for Fedora Server Install media
|
||||||
|
clearpart --all --initlabel --disklabel=gpt
|
||||||
|
reqpart --add-boot
|
||||||
|
part pv.007 --size=4000 --grow
|
||||||
|
volgroup sysvg pv.007
|
||||||
|
logvol / --vgname=sysvg --size=4000 --grow --maxsize=16000 --fstype=xfs --name=root --label=sysroot
|
||||||
|
|
||||||
|
|
||||||
|
# Include URLs for network installation dynamically, dependent from Fedora release
|
||||||
|
# and imagefactory runtime environment
|
||||||
|
%include fedora-repo.ks
|
||||||
|
|
||||||
|
# Shutdown after installation
|
||||||
|
shutdown
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##### begin package list #############################################
|
||||||
|
%packages --inst-langs=en
|
||||||
|
|
||||||
|
@server-product
|
||||||
|
@core
|
||||||
|
@headless-management
|
||||||
|
@standard
|
||||||
|
@networkmanager-submodules
|
||||||
|
##@container-management
|
||||||
|
@domain-client
|
||||||
|
@guest-agents
|
||||||
|
|
||||||
|
# All arm-tools packages install on aarch64/armhfp only
|
||||||
|
# TODO: on a x86_64 devel environment are @arm-tools not available
|
||||||
|
# and cause a build error.
|
||||||
|
# @arm-tools
|
||||||
|
|
||||||
|
# Standard Fedora Package Groups
|
||||||
|
## dracut-config-generic ## included in =core=
|
||||||
|
glibc-all-langpacks
|
||||||
|
initial-setup
|
||||||
|
kernel-core
|
||||||
|
-dracut-config-rescue
|
||||||
|
-generic-release*
|
||||||
|
-initial-setup-gui
|
||||||
|
-kernel
|
||||||
|
-linux-firmware
|
||||||
|
-plymouth
|
||||||
|
# pulled in by @standard
|
||||||
|
-smartmontools
|
||||||
|
-smartmontools-selinux
|
||||||
|
|
||||||
|
%end
|
||||||
|
##### end package list ###############################################
|
||||||
|
|
||||||
|
|
||||||
|
##### begin kickstart post script ####################################
|
||||||
|
%post --erroronfail --log=/root/anaconda-post-1.log
|
||||||
|
|
||||||
|
# Find the architecture we are on
|
||||||
|
arch=$(uname -m)
|
||||||
|
|
||||||
|
# Import RPM GPG key, during installation saved in /etc/pki
|
||||||
|
echo "Import RPM GPG key"
|
||||||
|
releasever=$(rpm --eval '%{fedora}')
|
||||||
|
basearch=$(uname -i)
|
||||||
|
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
|
||||||
|
|
||||||
|
# See the systemd-random-seed.service man page that says:
|
||||||
|
# " It is recommended to remove the random seed from OS images intended
|
||||||
|
# for replication on multiple systems"
|
||||||
|
# The newly installed instance should make it's own
|
||||||
|
echo "Removing random-seed so it's not the same in every image."
|
||||||
|
rm -f /var/lib/systemd/random-seed
|
||||||
|
|
||||||
|
# When we build the image a networking config file gets left behind.
|
||||||
|
# Let's clean it up.
|
||||||
|
echo "Cleanup leftover networking configuration"
|
||||||
|
rm -f /etc/NetworkManager/system-connections/*.nmconnection
|
||||||
|
|
||||||
|
# Truncate the /etc/resolv.conf left over from NetworkManager during the
|
||||||
|
# kickstart because the DNS server is environment specific.
|
||||||
|
truncate -s 0 /etc/resolv.conf
|
||||||
|
|
||||||
|
echo "Cleaning repodata to save space."
|
||||||
|
dnf clean all
|
||||||
|
|
||||||
|
# linux-firmware is installed by default and is quite large. As of mid 2020:
|
||||||
|
# Total download size: 97 M
|
||||||
|
# Installed size: 268 M
|
||||||
|
# Not needed in virtual environment.
|
||||||
|
echo "Removing linux-firmware package."
|
||||||
|
rpm -e linux-firmware
|
||||||
|
|
||||||
|
# Will ever anybody see this?
|
||||||
|
echo "Packages within this disk image"
|
||||||
|
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*
|
||||||
|
|
||||||
|
|
||||||
|
# Do we need a serial terminal with a VM?
|
||||||
|
if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then
|
||||||
|
# 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
|
||||||
|
sed -i -e 's|console=tty0||g' /boot/loader/entries/*conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Remove machine-id on pre generated images
|
||||||
|
rm -f /etc/machine-id
|
||||||
|
touch /etc/machine-id
|
||||||
|
|
||||||
|
%end
|
||||||
|
##### end kickstart post script #####################################
|
||||||
|
|
||||||
|
|
||||||
|
##### begin custom post script (after base) #########################
|
||||||
|
%post
|
||||||
|
|
||||||
|
echo "Zeroing out empty space."
|
||||||
|
# Create zeros file with nodatacow and no compression
|
||||||
|
touch /var/tmp/zeros
|
||||||
|
chattr +C /var/tmp/zeros
|
||||||
|
# This forces the filesystem to reclaim space from deleted files
|
||||||
|
dd bs=1M if=/dev/zero of=/var/tmp/zeros || :
|
||||||
|
echo "(Don't worry -- that out-of-space error was expected.)"
|
||||||
|
# Force sync to disk
|
||||||
|
sync /
|
||||||
|
rm -f /var/tmp/zeros
|
||||||
|
sync /
|
||||||
|
|
||||||
|
# setup systemd to boot to the right runlevel
|
||||||
|
echo -n "Setting default runlevel to multiuser text mode"
|
||||||
|
rm -f /etc/systemd/system/default.target
|
||||||
|
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
||||||
|
echo .
|
||||||
|
|
||||||
|
%end
|
||||||
|
##### end custom post script ########################################
|
||||||
@@ -78,7 +78,8 @@ cat /etc/fedora-release >> /boot/olpc_build
|
|||||||
# Rebuild initrd for Sugar boot screen
|
# Rebuild initrd for Sugar boot screen
|
||||||
KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
|
KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
|
||||||
/usr/sbin/plymouth-set-default-theme sugar
|
/usr/sbin/plymouth-set-default-theme sugar
|
||||||
dracut -N -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
sed -i -r 's/(omit_dracutmodules\+\=.*) plymouth (.*)/\1 \2/' /etc/dracut.conf.d/99-liveos.conf
|
||||||
|
dracut --force-add plymouth -N -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
||||||
|
|
||||||
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
||||||
rm -f /var/lib/rpm/__db*
|
rm -f /var/lib/rpm/__db*
|
||||||
@@ -109,3 +110,14 @@ EOF
|
|||||||
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
|
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%post --nochroot
|
||||||
|
|
||||||
|
for n in initramfs initrd; do
|
||||||
|
for img in "$LIVE_ROOT/images/pxeboot/$n"* ; do
|
||||||
|
[ -e "$img" ] && cp -a "$INSTALL_ROOT"/boot/initramfs-*.img "$img"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
%end
|
||||||
|
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ fas = [ "lupinix" ]
|
|||||||
maintainers = [ "Christian Dersch" ]
|
maintainers = [ "Christian Dersch" ]
|
||||||
|
|
||||||
[labs.security.x86_64]
|
[labs.security.x86_64]
|
||||||
fas = [ "fab", "jsimon" ]
|
fas = [ "fab", "jsimon", "q5sys"]
|
||||||
maintainers = [ "Fabian Affolter", "Joerg Simon" ]
|
maintainers = [ "Fabian Affolter", "Joerg Simon", "JT Pennington" ]
|
||||||
|
|
||||||
[labs.comp_neuro.x86_64]
|
[labs.comp_neuro.x86_64]
|
||||||
fas = [ "bt0dotninja", "dan1mal", "ankursinha", "neuro-sig" ]
|
fas = [ "bt0dotninja", "dan1mal", "ankursinha", "neuro-sig" ]
|
||||||
@@ -51,8 +51,8 @@ fas = [ "luya" ]
|
|||||||
maintainers = [ "Luya Tshimbalanga" ]
|
maintainers = [ "Luya Tshimbalanga" ]
|
||||||
|
|
||||||
[labs.games.x86_64]
|
[labs.games.x86_64]
|
||||||
fas = [ "dagostinelli" ]
|
fas = [ "dagostinelli", "richardanaya" ]
|
||||||
maintainers = [ "Darryl T. Agostinelli" ]
|
maintainers = [ "Darryl T. Agostinelli", "Richard Anaya" ]
|
||||||
|
|
||||||
[labs.jam_kde.x86_64]
|
[labs.jam_kde.x86_64]
|
||||||
fas = [ "q5sys" ]
|
fas = [ "q5sys" ]
|
||||||
@@ -71,8 +71,8 @@ fas = [ "scitech" ]
|
|||||||
maintainers = [ "SciTech SIG" ]
|
maintainers = [ "SciTech SIG" ]
|
||||||
|
|
||||||
[labs.robotics.x86_64]
|
[labs.robotics.x86_64]
|
||||||
fas = [ "rmattes", "robotics-sig" ]
|
fas = [ "x3mboy", "robotics-sig" ]
|
||||||
maintainers = [ "Rich Mattes", "Robotics SIG" ]
|
maintainers = [ "Eduard Lucena", "Robotics SIG" ]
|
||||||
|
|
||||||
[spins.i3.x86_64]
|
[spins.i3.x86_64]
|
||||||
fas = [ "jflory7", "defolos", "nasirhm", "odilhao", "x3mboy" ]
|
fas = [ "jflory7", "defolos", "nasirhm", "odilhao", "x3mboy" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user