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