phyllomeos/leaves/dhi.cfg

52 lines
2.2 KiB
INI
Raw Normal View History

# __ ____ ____ _____
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
# /_/ /____/
2021-08-19 10:07:37 +00:00
# What ? This kickstart file bootstraps a desktop hypervisor configured for Intel(tm) CPU and Intel(tm) graphic cards.
# 'd' for desktop, 'h' for hypervisor', 'i' for intel
# ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents.
# Bye bye!
# 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 :
# ksflatten -c dhi.cfg -o ../flat/flat-dhi.cfg
%include b.cfg # A minimal machine
%include bd.cfg # A desktop environment
%include bh.cfg # A base hypervisor
%include bhi.cfg # Specific virtualization configuration for Intel(tm) CPU and Intel(tm) graphic cards
2021-08-18 17:55:52 +00:00
reboot --kexec # Reboot straight into the system after a successfull installation
2021-08-19 17:41:27 +00:00
%packages --exclude-weakdeps # Beginning of the packages section. Do not include weak dependencies.
2021-08-18 17:55:52 +00:00
virt-manager # Install virt-manager, the graphical front-end for QEMU/KVM
2021-08-19 17:41:27 +00:00
gnome-initial-setup # Add GNOME initial setup too to let user create local account.
2021-08-18 17:55:52 +00:00
2021-08-19 17:41:27 +00:00
%end # End of the packages section
2021-08-20 08:26:23 +00:00
%post --nochroot --log=/mnt/sysimage/root/dhi.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
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-08-20 08:26:23 +00:00
# Create a file to autostart virt-manager
cat > /mnt/sysimage/etc/xdg/autostart/virt-manager.desktop << EOF
[Desktop Entry]
Type=Application
Name=Virtual Machine Manager
Exec=virt-manager
EOF
2021-11-05 10:41:03 +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-20 08:26:23 +00:00
%end # End of the %post section