remove anaconda and

other stuff from the base live image
This commit is contained in:
lukas 2021-08-18 18:21:28 +02:00
parent adf530e67c
commit 936e18837c

View File

@ -11,6 +11,15 @@
# ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents. # ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents.
# Bye bye! # Bye bye!
# This kickstart file in particular would not have been possible without the hard work of the following people,
# which are the current and former maintainers of the official fedora kickstart files :
# Adam Miller, Bastien Nocera, Bruno Wolff III, Bryan Kearney, Chitlesh Goorah, Christoph Wickert,
# Colin Walters, Fabian Affolter, Igor Pires Soares, Jens Petersen, Jeremy Katz, Jeroen van Meeuwen
# Jesse Keating, Luya Tshimbalanga, Matthias Clasen, Pedro Silva, Rahul Sundaram, Sebastian Dziallas
# Sebastian Vahl, wart.
#
# Thank you!
text # Perform installation in text mode text # Perform installation in text mode
repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch # Official Fedora mirror repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch # Official Fedora mirror
@ -28,11 +37,11 @@ xconfig --startxonboot
zerombr zerombr
clearpart --all clearpart --all
part / --grow --fstype ext4 # change here part / --size 5120 --fstype ext4
bootloader --timeout=1 bootloader --timeout=1
services --enabled=NetworkManager,ModemManager --disabled=sshd services --enabled=NetworkManager --disabled=sshd
network --bootproto=dhcp --device=link --activate network --bootproto=dhcp --device=link --activate --hostname=phyllome
rootpw --lock --iscrypted locked rootpw --lock --iscrypted locked
@ -50,20 +59,20 @@ kernel-modules-extra
# "Diagnosis/recovery tool useful from a Live OS image". Leaving this untouched # "Diagnosis/recovery tool useful from a Live OS image". Leaving this untouched
# for now. # for now.
#memtest86+ #memtest86+
@x86-baremetal-tools # memtest86+ is included #@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
anaconda-live # anaconda-live
# @anaconda-tools # @anaconda-tools
# Anaconda has a weak dep on this and we don't want it on livecds, see # Anaconda has a weak dep on this and we don't want it on livecds, see
# https://fedoraproject.org/wiki/Changes/RemoveDeviceMapperMultipathFromWorkstationLiveCD # https://fedoraproject.org/wiki/Changes/RemoveDeviceMapperMultipathFromWorkstationLiveCD
-fcoe-utils # -fcoe-utils
-device-mapper-multipath # -device-mapper-multipath
# Need aajohan-comfortaa-fonts for the SVG rnotes images # Need aajohan-comfortaa-fonts for the SVG rnotes images
aajohan-comfortaa-fonts # 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
@ -206,10 +215,10 @@ usermod -aG wheel liveuser > /dev/null
passwd -d root > /dev/null passwd -d root > /dev/null
# turn off firstboot for livecd boots # turn off firstboot for livecd boots
# systemctl --no-reload disable firstboot-text.service 2> /dev/null || : systemctl --no-reload disable firstboot-text.service 2> /dev/null || :
# systemctl --no-reload disable firstboot-graphical.service 2> /dev/null || : systemctl --no-reload disable firstboot-graphical.service 2> /dev/null || :
# systemctl stop firstboot-text.service 2> /dev/null || : systemctl stop firstboot-text.service 2> /dev/null || :
# systemctl stop firstboot-graphical.service 2> /dev/null || : systemctl stop firstboot-graphical.service 2> /dev/null || :
# don't use prelink on a running live image # don't use prelink on a running live image
sed -i 's/PRELINKING=yes/PRELINKING=no/' /etc/sysconfig/prelink &>/dev/null || : sed -i 's/PRELINKING=yes/PRELINKING=no/' /etc/sysconfig/prelink &>/dev/null || :
@ -241,7 +250,7 @@ touch /.liveimg-configured
# https://bugzilla.redhat.com/show_bug.cgi?id=679486 # https://bugzilla.redhat.com/show_bug.cgi?id=679486
# the hostname must be something else than 'localhost' # the hostname must be something else than 'localhost'
# https://bugzilla.redhat.com/show_bug.cgi?id=1370222 # https://bugzilla.redhat.com/show_bug.cgi?id=1370222
hostnamectl set-hostname "localhost-live" # hostnamectl set-hostname "localhost-live"
EOF EOF
@ -290,14 +299,14 @@ done
#fi #fi
# configure X, allowing user to override xdriver # configure X, allowing user to override xdriver
if [ -n "\$xdriver" ]; then #if [ -n "\$xdriver" ]; then
cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE # cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
Section "Device" #Section "Device"
Identifier "Videocard0" # Identifier "Videocard0"
Driver "\$xdriver" # Driver "\$xdriver"
EndSection #EndSection
FOE #FOE
fi #fi
EOF EOF
@ -338,8 +347,8 @@ rm -f /var/lib/systemd/random-seed
# convince readahead not to collect # convince readahead not to collect
# FIXME: for systemd # FIXME: for systemd
echo 'File created by kickstart. See systemd-update-done.service(8).' echo 'File created by kickstart. See systemd-update-done.service(8).' \
tee /etc/.updated >/var/.updated | tee /etc/.updated >/var/.updated
# Drop the rescue kernel and initramfs, we don't need them on the live media itself. # Drop the rescue kernel and initramfs, we don't need them on the live media itself.
# See bug 1317709 # See bug 1317709
@ -355,7 +364,6 @@ touch /etc/machine-id
%end %end
%post --nochroot %post --nochroot
# For livecd-creator builds only (lorax/livemedia-creator handles this directly) # For livecd-creator builds only (lorax/livemedia-creator handles this directly)
if [ -n "$LIVE_ROOT" ]; then if [ -n "$LIVE_ROOT" ]; then