mirror of
https://github.com/PhyllomeOS/phyllomeos.git
synced 2024-11-05 12:11:10 +00:00
52 lines
2.1 KiB
INI
52 lines
2.1 KiB
INI
|
# __ ____ ____ _____
|
||
|
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
||
|
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
||
|
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
||
|
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||
|
# /_/ /____/
|
||
|
|
||
|
# What ? This kickstart file bootstraps a desktop hypervisor meant to be installed inside a virtual machine.
|
||
|
|
||
|
# 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 virtual-desktop-hypervisor.cfg -o ../leaves/virtual-phyllome-desktop.cfg
|
||
|
|
||
|
%include base-fedora-repo.cfg # offical repositories for Fedora
|
||
|
%include base-storage.cfg # base storage
|
||
|
%include base.cfg # A minimal machine
|
||
|
%include base-desktop-gnome.cfg # A desktop environment
|
||
|
%include base-hypervisor.cfg # A base hypervisor
|
||
|
%include base-guest-agents.cfg # Guest agents
|
||
|
|
||
|
reboot --kexec # Reboot straight into the system after a successfull installation
|
||
|
|
||
|
%packages --exclude-weakdeps # Beginning of the packages section. Do not include weak dependencies.
|
||
|
|
||
|
virt-manager # Install virt-manager, the graphical front-end for QEMU/KVM
|
||
|
gnome-initial-setup # Add GNOME initial setup too to let user create local account.
|
||
|
|
||
|
%end # End of the packages section
|
||
|
|
||
|
%post --nochroot --log=/mnt/sysimage/root/dh.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
|
||
|
|
||
|
# 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
|
||
|
|
||
|
## 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
|
||
|
|
||
|
%end # End of the %post section
|
||
|
|