kickstarts/Rocky-9-XFCE.ks

239 lines
5.8 KiB
Plaintext
Raw Normal View History

2024-02-15 03:40:30 +00:00
# Generated by pykickstart v3.48
2021-07-02 23:21:36 +00:00
#version=DEVEL
2024-02-15 03:40:30 +00:00
# Firewall configuration
firewall --enabled --service=mdns
2021-07-02 23:21:36 +00:00
# Keyboard layouts
keyboard 'us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=link --activate
2024-02-15 03:40:30 +00:00
# Shutdown after installation
shutdown
repo --name="BaseOS" --baseurl=http://dl.rockylinux.org/pub/rocky/9/BaseOS/$basearch/os/ --cost=200
repo --name="AppStream" --baseurl=http://dl.rockylinux.org/pub/rocky/9/AppStream/$basearch/os/ --cost=200
repo --name="CRB" --baseurl=http://dl.rockylinux.org/pub/rocky/9/CRB/$basearch/os/ --cost=200
repo --name="extras" --baseurl=http://dl.rockylinux.org/pub/rocky/9/extras/$basearch/os --cost=200
repo --name="epel" --baseurl=https://dl.fedoraproject.org/pub/epel/9/Everything/$basearch/ --cost=200
2024-02-15 03:40:30 +00:00
# Root password
rootpw --iscrypted --lock locked
2021-07-02 23:21:36 +00:00
# SELinux configuration
selinux --enforcing
# System services
services --disabled="sshd" --enabled="NetworkManager,ModemManager"
2024-02-15 03:40:30 +00:00
# System timezone
timezone US/Eastern
# Use network installation
url --url="http://dl.rockylinux.org/pub/rocky/9/BaseOS/$basearch/os/"
2024-02-15 03:40:30 +00:00
# X Window System configuration information
xconfig --startxonboot
2021-07-02 23:21:36 +00:00
# System bootloader configuration
bootloader --location=none
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all
# Disk partitioning information
part / --fstype="ext4" --size=5120
part / --size=6144
%post
systemctl enable livesys.service
systemctl enable livesys-late.service
2021-07-02 23:21:36 +00:00
# Enable tmpfs for /tmp - this is a good idea
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
# PackageKit likes to play games. Let's fix that.
rm -f /var/lib/rpm/__db*
releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release)
basearch=$(uname -i)
2023-11-16 17:10:10 +00:00
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
2021-07-02 23:21:36 +00:00
echo "Packages within this LiveCD"
rpm -qa
# 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 - the error is expected
systemctl disable network
2021-07-02 23:21:36 +00:00
# Remove machine-id on generated images
rm -f /etc/machine-id
touch /etc/machine-id
2024-02-15 16:54:17 +00:00
# relabel
2024-02-15 17:59:12 +00:00
/usr/sbin/restorecon -RF /
2024-02-15 16:54:17 +00:00
2022-06-30 02:31:05 +00:00
%end
2024-02-15 03:57:54 +00:00
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end
2022-06-30 02:31:05 +00:00
%post
2021-07-02 23:21:36 +00:00
# xfce configuration
# create /etc/sysconfig/desktop (needed for installation)
cat > /etc/sysconfig/desktop <<EOF
PREFERRED=/usr/bin/startxfce4
2022-05-16 02:55:42 +00:00
DISPLAYMANAGER=/usr/sbin/lightdm
2021-07-02 23:21:36 +00:00
EOF
2023-11-16 10:49:42 +00:00
# set default background
2023-11-16 19:10:18 +00:00
cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml <<XFCEEOF
2023-11-16 10:49:42 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-desktop" version="1.0">
<property name="backdrop" type="empty">
<property name="screen0" type="empty">
<property name="monitor0" type="empty">
2024-02-15 03:40:30 +00:00
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
2023-11-16 10:49:42 +00:00
<property name="last-image" type="string" value="/usr/share/backgrounds/rocky-default-9-abstract-2-day.png"/>
<property name="last-single-image" type="string" value="/usr/share/backgrounds/rocky-default-9-abstract-2-day.png"/>
<property name="image-path" type="string" value="/usr/share/backgrounds/rocky-default-9-abstract-2-day.png"/>
</property>
</property>
</property>
</channel>
2023-11-16 19:10:18 +00:00
XFCEEOF
2023-11-16 10:49:42 +00:00
2024-02-15 03:40:30 +00:00
sed -i 's/^livesys_session=.*/livesys_session="xfce"/' /etc/sysconfig/livesys
2021-07-02 23:21:36 +00:00
# this doesn't come up automatically. not sure why.
2022-05-16 02:55:42 +00:00
systemctl enable --force lightdm.service
2022-05-15 17:34:12 +00:00
2022-06-30 02:31:05 +00:00
# CRB needs to be enabled for EPEL to function.
dnf config-manager --set-enabled crb
2022-05-15 17:34:12 +00:00
%end
2021-07-02 23:21:36 +00:00
%packages
@anaconda-tools
@base-x
@core
@dial-up
@fonts
@guest-desktop-agents
@hardware-support
@input-methods
@multimedia
@standard
2022-07-12 01:22:20 +00:00
@xfce-desktop --nodefaults
2021-07-02 23:21:36 +00:00
aajohan-comfortaa-fonts
anaconda
anaconda-install-env-deps
anaconda-live
chkconfig
dracut-live
2022-07-12 01:22:20 +00:00
efi-filesystem
efibootmgr
efivar-libs
2021-07-02 23:21:36 +00:00
epel-release
firefox
firewall-config
2023-11-14 07:58:41 +00:00
gjs
2021-07-02 23:21:36 +00:00
glibc-all-langpacks
gparted
2022-07-12 01:22:20 +00:00
grub2-common
grub2-efi-*64
grub2-efi-*64-cdboot
grub2-pc-modules
grub2-tools
grub2-tools-efi
grub2-tools-extra
grub2-tools-minimal
grubby
2021-07-02 23:21:36 +00:00
initscripts
kernel
kernel-modules
kernel-modules-extra
2022-06-30 02:31:05 +00:00
lightdm
livesys-scripts
2021-07-02 23:21:36 +00:00
memtest86+
2022-07-12 01:22:20 +00:00
network-manager-applet
openssh-askpass
2021-07-02 23:21:36 +00:00
pavucontrol
pcp-selinux
rocky-backgrounds
2023-11-16 10:36:32 +00:00
rocky-backgrounds-compat
rocky-release
2021-07-02 23:21:36 +00:00
seahorse
2022-07-12 01:22:20 +00:00
shim-*64
2021-07-02 23:21:36 +00:00
syslinux
2022-07-12 01:22:20 +00:00
thunar-archive-plugin
thunar-volman
2021-07-02 23:21:36 +00:00
thunderbird
2022-07-12 01:22:20 +00:00
tumbler
2021-07-02 23:21:36 +00:00
wget
2022-06-30 02:31:05 +00:00
xdg-user-dirs
xdg-user-dirs-gtk
2022-07-12 01:22:20 +00:00
xfce-polkit
2021-07-02 23:21:36 +00:00
xfce4-about
xfce4-appfinder
xfce4-datetime-plugin
xfce4-netload-plugin
2024-02-11 23:21:17 +00:00
xfce4-notifyd
2024-02-15 02:37:38 +00:00
xfce4-panel-profiles
2022-07-12 01:22:20 +00:00
xfce4-power-manager
xfce4-screensaver
2021-07-02 23:21:36 +00:00
xfce4-screenshooter-plugin
xfce4-smartbookmark-plugin
xfce4-systemload-plugin
xfce4-taskmanager
2022-07-12 01:22:20 +00:00
xfce4-terminal
2021-07-02 23:21:36 +00:00
xfce4-time-out-plugin
xfce4-weather-plugin
xfce4-whiskermenu-plugin
-acpid
-aspell-*
-autofs
-desktop-backgrounds-basic
-gdm
-gimp-help
-gnome-shell
-hplip
-isdn4k-utils
-mpage
-sane-backends
2022-07-12 01:22:20 +00:00
-shim-unsigned-*64
2021-07-02 23:21:36 +00:00
-xfce4-eyes-plugin
-xfce4-sensors-plugin
-xsane
-xsane-gimp
%end