mirror of
https://github.com/PhyllomeOS/phyllomeos.git
synced 2024-12-22 13:05:17 +00:00
20ed966ff2
rebase with upstream (fedora kickstarts). Add associated dishes
129 lines
4.6 KiB
INI
129 lines
4.6 KiB
INI
# __ ____ ____ _____
|
|
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
|
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
|
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
|
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
|
# /_/ /____/
|
|
|
|
# What ? This kickstart file provides a basic block to build a minimal, live system
|
|
|
|
keyboard --xlayouts='ch (fr)' # set keyboard layouts for Romandy
|
|
lang en_US.UTF-8 # Set system language to American English. More languages could be supported: --addsupport=cs_CZ,de_DE,en_UK
|
|
timezone Europe/Paris --utc # Set system timezone to Paris
|
|
|
|
rootpw --lock --iscrypted locked # Lock the root account
|
|
|
|
selinux --disabled # Make sure SELinux is disabled / Other option: --enforcing
|
|
firewall --enabled --service=mdns# Make sure the firewall is enabled
|
|
services --enabled=NetworkManager,systemd-resolved --disabled=sshd
|
|
network --onboot=yes --bootproto=dhcp --device=link --activate --hostname=phyllome-alpha # Configure network interfaces and set hostname. "link" selects the first device reaching an up state
|
|
|
|
zerombr # WARNING : Dangerous command ! Will clear the Master Boot Record
|
|
clearpart --all --initlabel # Partition clearing information. This setup uses GPT by default.
|
|
bootloader --location=none # Set the GNU GRUB bootloader
|
|
part / --fstype="ext4" --size=5120 # Create a root partition of around 7GB
|
|
|
|
%packages # Beginning of the package section. Does not include weak dependencies.
|
|
|
|
@core # minimal installation
|
|
@hardware-support # Provides extended hardware support, and especially extra wireless drivers
|
|
pciutils # Pciutils provides lspci commandline tool, which is not installed by default
|
|
libusb # add usb library (otherwise, USB 3.0 controllers seem to not work)
|
|
usbutils # add lsusb utility
|
|
wget # "The non-interactive network downloader. " Used to fetch files during installation
|
|
neofetch # a simple tool to show hardware-related informations inside a terminal
|
|
nano # The nano text editor
|
|
-fedora-logos # Remove Fedora logos to comply with [Fedora Remix legal guidelines](https://fedoraproject.org/wiki/Remix)
|
|
-fedora-release # Remove Fedora release-notes
|
|
-fedora-release-notes # Remove Fedora release-notes
|
|
-fedora-release-common # Remove Fedora release files
|
|
-fedora-release-identity-basic # ???
|
|
fedora-remix-logos # Add Fedora Remix logos
|
|
generic-release # Add Fedora Remix logos
|
|
generic-logos # Add Fedora Remix logos
|
|
generic-release-common # "Generic release files"
|
|
generic-release-notes # "Release Notes"
|
|
grub2-common.noarch
|
|
grub2-efi-ia32
|
|
grub2-efi-x64
|
|
grub2-efi-x64-cdboot
|
|
grub2-pc-modules.noarch
|
|
grub2-tools
|
|
grub2-tools-efi
|
|
grub2-tools-extra
|
|
grub2-tools-minimal
|
|
grubby
|
|
|
|
# Explicitly specified here:
|
|
# <notting> walters: because otherwise dependency loops cause yum issues.
|
|
kernel
|
|
kernel-modules
|
|
kernel-modules-extra
|
|
|
|
# Need aajohan-comfortaa-fonts for the SVG rnotes images
|
|
aajohan-comfortaa-fonts
|
|
|
|
# Without this, initramfs generation during live image creation fails: #1242586
|
|
dracut-live
|
|
|
|
# anaconda needs the locales available to run for different locales
|
|
glibc-all-langpacks
|
|
|
|
# provide the livesys scripts
|
|
livesys-scripts
|
|
%end
|
|
|
|
%post
|
|
|
|
# Enable livesys services
|
|
systemctl enable livesys.service
|
|
systemctl enable livesys-late.service
|
|
|
|
# enable tmpfs for /tmp
|
|
systemctl enable tmp.mount
|
|
|
|
# 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
|
|
|
|
# work around for poor key import UI in PackageKit
|
|
rm -f /var/lib/rpm/__db*
|
|
echo "Packages within this LiveCD"
|
|
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*
|
|
|
|
# go ahead and pre-make the man -k cache (#455968)
|
|
/usr/bin/mandb
|
|
|
|
# make sure there aren't core files lying around
|
|
rm -f /core*
|
|
|
|
# remove random seed, the newly installed instance should make it's own
|
|
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
|
|
|
|
# Drop the rescue kernel and initramfs, we don't need them on the live media itself.
|
|
# See bug 1317709
|
|
rm -f /boot/*-rescue*
|
|
|
|
# Disable network service here, as doing it in the services line
|
|
# fails due to RHBZ #1369794
|
|
systemctl disable network
|
|
|
|
# Remove machine-id on pre generated images
|
|
rm -f /etc/machine-id
|
|
touch /etc/machine-id
|
|
|
|
# set livesys session type
|
|
sed -i 's/^livesys_session=.*/livesys_session="gnome"/' /etc/sysconfig/livesys
|
|
|
|
%end |