2021-08-18 09:51:42 +00:00
|
|
|
# __ ____ ____ _____
|
|
|
|
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
|
|
|
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
|
|
|
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
|
|
|
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
|
|
|
# /_/ /____/
|
|
|
|
|
2021-08-18 13:01:51 +00:00
|
|
|
# What ? This kickstart file bootstraps a live desktop machine.
|
2021-08-18 09:51:42 +00:00
|
|
|
# 'l' for live, 'd' for desktop, 'm' for minimal, 'd' for development only.
|
|
|
|
|
|
|
|
# ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents.
|
|
|
|
# Bye bye
|
|
|
|
|
2021-08-18 13:01:51 +00:00
|
|
|
%include blmd.cfg # A base for a minimal live machine
|
|
|
|
%include bdmd.cfg # A base for a desktop environment
|
2021-08-18 09:51:42 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
|
|
|
|
|
|
|
# rebuild schema cache with any overrides we installed
|
|
|
|
glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
|
|
|
|
|
|
# set up auto-login
|
|
|
|
cat > /etc/gdm/custom.conf << FOE
|
|
|
|
[daemon]
|
|
|
|
AutomaticLoginEnable=True
|
|
|
|
AutomaticLogin=liveuser
|
|
|
|
FOE
|
|
|
|
|
|
|
|
# Turn off PackageKit-command-not-found while uninstalled
|
|
|
|
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
|
|
|
|
sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
# make sure to set the right permissions and selinux contexts
|
|
|
|
chown -R liveuser:liveuser /home/liveuser/
|
|
|
|
restorecon -R /home/liveuser/
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%end
|