2008-04-13 15:24:59 +00:00
|
|
|
# fedora-live-base.ks
|
|
|
|
#
|
|
|
|
# Defines the basics for all kickstarts in the fedora-live branch
|
|
|
|
# Does not include package selection (other then mandatory)
|
|
|
|
# Does not include localization packages or configuration
|
2008-05-01 14:30:50 +00:00
|
|
|
#
|
2008-04-23 23:29:55 +00:00
|
|
|
# Does includes "default" language configuration (kickstarts including
|
2008-04-13 15:24:59 +00:00
|
|
|
# this template can override these settings)
|
|
|
|
|
|
|
|
lang en_US.UTF-8
|
|
|
|
keyboard us
|
|
|
|
timezone US/Eastern
|
|
|
|
selinux --enforcing
|
2009-12-14 12:07:43 +00:00
|
|
|
firewall --enabled --service=mdns
|
2008-04-13 15:24:59 +00:00
|
|
|
xconfig --startxonboot
|
2016-02-08 13:10:28 +00:00
|
|
|
zerombr
|
|
|
|
clearpart --all
|
2016-02-09 12:59:50 +00:00
|
|
|
part / --size 5120 --fstype ext4
|
2016-08-24 16:50:38 +00:00
|
|
|
services --enabled=NetworkManager,ModemManager --disabled=sshd
|
2016-02-11 15:16:20 +00:00
|
|
|
network --bootproto=dhcp --device=link --activate
|
2016-11-12 21:10:51 +00:00
|
|
|
rootpw --lock --iscrypted locked
|
2016-02-08 13:10:28 +00:00
|
|
|
shutdown
|
2008-04-13 15:24:59 +00:00
|
|
|
|
2013-06-29 13:05:30 +00:00
|
|
|
%include fedora-repo.ks
|
2008-04-13 15:24:59 +00:00
|
|
|
|
|
|
|
%packages
|
2010-03-23 13:14:04 +00:00
|
|
|
# Explicitly specified here:
|
|
|
|
# <notting> walters: because otherwise dependency loops cause yum issues.
|
|
|
|
kernel
|
2016-02-08 13:10:28 +00:00
|
|
|
kernel-modules
|
|
|
|
kernel-modules-extra
|
2008-04-13 15:24:59 +00:00
|
|
|
|
2010-03-24 21:41:41 +00:00
|
|
|
# The point of a live image is to install
|
|
|
|
anaconda
|
2018-04-05 11:23:53 +00:00
|
|
|
anaconda-install-env-deps
|
2019-02-01 15:55:16 +00:00
|
|
|
anaconda-live
|
2012-09-07 19:37:13 +00:00
|
|
|
@anaconda-tools
|
2020-08-03 13:00:42 +00:00
|
|
|
# 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
|
2023-09-18 19:44:33 +00:00
|
|
|
-sdubby
|
2010-03-24 21:41:41 +00:00
|
|
|
|
2014-09-19 18:06:36 +00:00
|
|
|
# Need aajohan-comfortaa-fonts for the SVG rnotes images
|
|
|
|
aajohan-comfortaa-fonts
|
|
|
|
|
2015-07-13 17:06:01 +00:00
|
|
|
# Without this, initramfs generation during live image creation fails: #1242586
|
|
|
|
dracut-live
|
|
|
|
|
2016-02-29 20:21:30 +00:00
|
|
|
# anaconda needs the locales available to run for different locales
|
|
|
|
glibc-all-langpacks
|
2018-11-01 19:49:54 +00:00
|
|
|
|
2022-11-29 06:30:25 +00:00
|
|
|
# provide the livesys scripts
|
|
|
|
livesys-scripts
|
2008-04-13 15:24:59 +00:00
|
|
|
%end
|
|
|
|
|
|
|
|
%post
|
2022-11-29 06:30:25 +00:00
|
|
|
# Enable livesys services
|
|
|
|
systemctl enable livesys.service
|
|
|
|
systemctl enable livesys-late.service
|
2008-06-03 11:49:27 +00:00
|
|
|
|
2012-10-12 14:39:17 +00:00
|
|
|
# enable tmpfs for /tmp
|
|
|
|
systemctl enable tmp.mount
|
|
|
|
|
2014-09-02 15:39:35 +00:00
|
|
|
# make it so that we don't do writing to the overlay for things which
|
|
|
|
# are just tmpdirs/caches
|
|
|
|
# note https://bugzilla.redhat.com/show_bug.cgi?id=1135475
|
|
|
|
cat >> /etc/fstab << EOF
|
|
|
|
vartmp /var/tmp tmpfs defaults 0 0
|
|
|
|
EOF
|
|
|
|
|
2008-06-03 11:49:27 +00:00
|
|
|
# work around for poor key import UI in PackageKit
|
|
|
|
rm -f /var/lib/rpm/__db*
|
2009-12-08 14:24:38 +00:00
|
|
|
echo "Packages within this LiveCD"
|
2020-06-17 11:14:08 +00:00
|
|
|
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
|
2011-01-26 06:51:41 +00:00
|
|
|
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
|
|
|
rm -f /var/lib/rpm/__db*
|
2008-06-03 11:49:27 +00:00
|
|
|
|
2008-08-11 14:52:18 +00:00
|
|
|
# go ahead and pre-make the man -k cache (#455968)
|
2010-08-04 15:58:13 +00:00
|
|
|
/usr/bin/mandb
|
2008-08-11 14:52:18 +00:00
|
|
|
|
2008-04-13 15:24:59 +00:00
|
|
|
# make sure there aren't core files lying around
|
|
|
|
rm -f /core*
|
|
|
|
|
2016-03-05 16:26:35 +00:00
|
|
|
# remove random seed, the newly installed instance should make it's own
|
|
|
|
rm -f /var/lib/systemd/random-seed
|
|
|
|
|
2010-04-30 11:50:27 +00:00
|
|
|
# convince readahead not to collect
|
2011-03-01 15:40:02 +00:00
|
|
|
# FIXME: for systemd
|
2010-04-30 11:50:27 +00:00
|
|
|
|
2015-03-06 20:17:41 +00:00
|
|
|
echo 'File created by kickstart. See systemd-update-done.service(8).' \
|
|
|
|
| tee /etc/.updated >/var/.updated
|
|
|
|
|
2016-03-25 18:36:19 +00:00
|
|
|
# Drop the rescue kernel and initramfs, we don't need them on the live media itself.
|
|
|
|
# See bug 1317709
|
|
|
|
rm -f /boot/*-rescue*
|
|
|
|
|
2016-08-24 16:50:38 +00:00
|
|
|
# Disable network service here, as doing it in the services line
|
|
|
|
# fails due to RHBZ #1369794
|
2022-11-29 06:30:25 +00:00
|
|
|
systemctl disable network
|
2016-08-24 16:50:38 +00:00
|
|
|
|
2016-09-13 07:55:44 +00:00
|
|
|
# Remove machine-id on pre generated images
|
|
|
|
rm -f /etc/machine-id
|
2016-09-27 19:17:46 +00:00
|
|
|
touch /etc/machine-id
|
2016-09-13 07:55:44 +00:00
|
|
|
|
2008-04-13 15:24:59 +00:00
|
|
|
%end
|
|
|
|
|