2021-08-18 09:52:14 +00:00
|
|
|
# __ ____ ____ _____
|
|
|
|
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
|
|
|
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
|
|
|
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
|
|
|
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
|
|
|
# /_/ /____/
|
|
|
|
|
2021-11-26 15:13:00 +00:00
|
|
|
# What ? This kickstart file bootstraps a desktop machine using GNOME Shell.
|
2021-08-18 09:52:14 +00:00
|
|
|
|
2021-08-18 18:10:10 +00:00
|
|
|
# In order to be fed to virt-install or software like livecd-creator, this file needs to be flatten or merged into one.
|
|
|
|
# Here is how you can do it with the ksflatten tool provided by the pykickstart package on Fedora :
|
2021-11-26 15:13:00 +00:00
|
|
|
# ksflatten -c desktop.cfg -o ../leaves/desktop.cfg
|
2021-08-18 18:10:10 +00:00
|
|
|
|
2021-11-26 15:13:00 +00:00
|
|
|
%include base-fedora-repo.cfg # offical repositories for Fedora
|
|
|
|
%include base-storage.cfg # base storage
|
|
|
|
%include base.cfg # A minimal machine
|
2021-11-26 15:21:00 +00:00
|
|
|
%include base-desktop-gnome.cfg # A desktop environment
|
2021-08-19 17:41:58 +00:00
|
|
|
|
|
|
|
reboot --kexec # Reboot straight into the system after a successfull installation
|
|
|
|
|
|
|
|
%packages --exclude-weakdeps # Beginning of the packages section. Do not include weak dependencies.
|
|
|
|
|
2021-11-04 12:09:12 +00:00
|
|
|
gnome-initial-setup # Add GNOME initial setup too.
|
2021-08-19 17:41:58 +00:00
|
|
|
|
2021-08-20 08:27:57 +00:00
|
|
|
%end # End of the %post section
|
|
|
|
|
2021-11-04 12:09:12 +00:00
|
|
|
%post --nochroot --log=/mnt/sysimage/root/d.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
|
2021-08-20 08:27:57 +00:00
|
|
|
|
|
|
|
truncate -s 0 /mnt/sysimage/usr/share/gnome-initial-setup/vendor.conf # remove content of vendor.conf so that all options are made available
|
|
|
|
|
2021-11-26 15:13:00 +00:00
|
|
|
## Append lines to existing vendor.conf file, so that options are skipped upon reboot
|
|
|
|
cat >> /mnt/sysimage/usr/share/gnome-initial-setup/vendor.conf<< EOF
|
|
|
|
[pages]
|
|
|
|
skip=privacy
|
|
|
|
[goa]
|
|
|
|
providers=local-first!
|
|
|
|
EOF
|
|
|
|
|
2021-08-19 17:41:58 +00:00
|
|
|
%end # End of the %post section
|