remove anaconda and
other stuff from the base live image
This commit is contained in:
parent
adf530e67c
commit
936e18837c
@ -11,6 +11,15 @@
|
||||
# ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents.
|
||||
# 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
|
||||
|
||||
repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch # Official Fedora mirror
|
||||
@ -28,11 +37,11 @@ xconfig --startxonboot
|
||||
|
||||
zerombr
|
||||
clearpart --all
|
||||
part / --grow --fstype ext4 # change here
|
||||
part / --size 5120 --fstype ext4
|
||||
bootloader --timeout=1
|
||||
|
||||
services --enabled=NetworkManager,ModemManager --disabled=sshd
|
||||
network --bootproto=dhcp --device=link --activate
|
||||
services --enabled=NetworkManager --disabled=sshd
|
||||
network --bootproto=dhcp --device=link --activate --hostname=phyllome
|
||||
|
||||
rootpw --lock --iscrypted locked
|
||||
|
||||
@ -50,20 +59,20 @@ kernel-modules-extra
|
||||
# "Diagnosis/recovery tool useful from a Live OS image". Leaving this untouched
|
||||
# for now.
|
||||
#memtest86+
|
||||
@x86-baremetal-tools # memtest86+ is included
|
||||
#@x86-baremetal-tools # memtest86+ is included
|
||||
|
||||
# The point of a live image is to install
|
||||
# anaconda
|
||||
# anaconda-install-env-deps
|
||||
anaconda-live
|
||||
# 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
|
||||
# -fcoe-utils
|
||||
# -device-mapper-multipath
|
||||
|
||||
# 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
|
||||
dracut-live
|
||||
@ -206,10 +215,10 @@ usermod -aG wheel liveuser > /dev/null
|
||||
passwd -d root > /dev/null
|
||||
|
||||
# turn off firstboot for livecd boots
|
||||
# systemctl --no-reload disable firstboot-text.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-graphical.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 stop firstboot-text.service 2> /dev/null || :
|
||||
systemctl stop firstboot-graphical.service 2> /dev/null || :
|
||||
|
||||
# don't use prelink on a running live image
|
||||
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
|
||||
# the hostname must be something else than 'localhost'
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1370222
|
||||
hostnamectl set-hostname "localhost-live"
|
||||
# hostnamectl set-hostname "localhost-live"
|
||||
|
||||
EOF
|
||||
|
||||
@ -290,14 +299,14 @@ done
|
||||
#fi
|
||||
|
||||
# configure X, allowing user to override xdriver
|
||||
if [ -n "\$xdriver" ]; then
|
||||
cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
|
||||
Section "Device"
|
||||
Identifier "Videocard0"
|
||||
Driver "\$xdriver"
|
||||
EndSection
|
||||
FOE
|
||||
fi
|
||||
#if [ -n "\$xdriver" ]; then
|
||||
# cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
|
||||
#Section "Device"
|
||||
# Identifier "Videocard0"
|
||||
# Driver "\$xdriver"
|
||||
#EndSection
|
||||
#FOE
|
||||
#fi
|
||||
|
||||
EOF
|
||||
|
||||
@ -338,8 +347,8 @@ 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
|
||||
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
|
||||
@ -355,7 +364,6 @@ touch /etc/machine-id
|
||||
|
||||
%end
|
||||
|
||||
|
||||
%post --nochroot
|
||||
# For livecd-creator builds only (lorax/livemedia-creator handles this directly)
|
||||
if [ -n "$LIVE_ROOT" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user