diff --git a/leaves/ldhamd.cfg b/leaves/ldhamd.cfg new file mode 100644 index 0000000..9aaa9c0 --- /dev/null +++ b/leaves/ldhamd.cfg @@ -0,0 +1,19 @@ +# __ ____ ____ _____ +# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/ +# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \ +# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ / +# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/ +# /_/ /____/ + +# What ? This kickstart file bootstraps a desktop hypervisor configured for AMD (tm) CPUs. +# 'l' for live, 'd' for desktop, 'h' for hypervisor', 'a' for amd, 'm' for minimal, 'd' for development only. + +# ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents. +# Bye bye! + +%include blmd.cfg # A base for a minimal live machine based on Fedora 34. +%include bdmd.cfg # A desktop machine based on Fedora 34 +%include bhmd.cfg # A base hypervisor based on Fedora 34 +%include bamd.cfg # Specific virtualization configuration for AMD (tm) CPUs + +xconfig --startxonboot --defaultdesktop=GNOME # Start GNOME on boot. Althought it says X, it works as well with Wayland diff --git a/leaves/ldhimd.cfg b/leaves/ldhimd.cfg new file mode 100644 index 0000000..9710137 --- /dev/null +++ b/leaves/ldhimd.cfg @@ -0,0 +1,19 @@ +# __ ____ ____ _____ +# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/ +# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \ +# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ / +# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/ +# /_/ /____/ + +# What ? This kickstart file bootstraps a desktop hypervisor configured for Intel(tm) CPU and Intel(tm) Graphics. +# 'l' for live, 'd' for desktop, 'h' for hypervisor', 'i' for intel, 'm' for minimal, 'd' for development only. + +# ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents. +# Bye bye! + +%include blmd.cfg # A base for a minimal live machine based on Fedora 34. +%include bdmd.cfg # A desktop machine based on Fedora 34 +%include bhmd.cfg # A base hypervisor based on Fedora 34 +%include bimd.cfg # Specific virtualization configuration for Intel(tm) CPU and Intel(tm) Graphics + +xconfig --startxonboot --defaultdesktop=GNOME # Start GNOME on boot. Althought it says X, it works as well with Wayland diff --git a/leaves/ldhmd.cfg b/leaves/ldhmd.cfg new file mode 100644 index 0000000..e086719 --- /dev/null +++ b/leaves/ldhmd.cfg @@ -0,0 +1,18 @@ +# __ ____ ____ _____ +# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/ +# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \ +# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ / +# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/ +# /_/ /____/ + +# What ? This kickstart file bootstraps a desktop hypervisor based on Fedora 34 expecting Intel(tm) CPU and Intel(tm) Graphics. +# 'l' for live, 'd' for desktop, 'h' for hypervisor, 'm' for minimal, 'd' for development only. + +# ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents. +# Bye bye! + +%include blmd.cfg # A base for a minimal live machine based on Fedora 34. +%include bdmd.cfg # A desktop machine based on Fedora 34 +%include bhmd.cfg # A base hypervisor based on Fedora 34 + +xconfig --startxonboot --defaultdesktop=GNOME # Start GNOME on boot. Althought it says X, it works as well with Wayland diff --git a/leaves/ldmd.cfg b/leaves/ldmd.cfg new file mode 100644 index 0000000..800d75c --- /dev/null +++ b/leaves/ldmd.cfg @@ -0,0 +1,66 @@ +# __ ____ ____ _____ +# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/ +# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \ +# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ / +# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/ +# /_/ /____/ + +# What ? This kickstart file bootstraps a live desktop machine based on Fedora 34. +# '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 + +%include blmd.cfg # A base for a minimal live machine based on Fedora 34. +%include bdmd.cfg # A base for a desktop machine based on Fedora 34 + +# part / --size 7680 + +%post + +# set new background +gsettings set org.gnome.desktop.background picture-uri file:///usr/share/backgrounds/elementary/'Morskie Oko.jpg' + +cat >> /etc/rc.d/init.d/livesys << EOF + +# make the installer show up +#if [ -f /usr/share/applications/liveinst.desktop ]; then +# # Show harddisk install in shell dash +# sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop "" +# # need to move it to anaconda.desktop to make shell happy +# mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop + +# cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE +#[org.gnome.shell] +#favorite-apps=['firefox.desktop', 'org.gnome.Calendar.desktop', 'rhythmbox.desktop', 'org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop', > +#FOE + +# # Make the welcome screen show up +# if [ -f /usr/share/anaconda/gnome/fedora-welcome.desktop ]; then +# mkdir -p ~liveuser/.config/autostart +# cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/ +# cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/ +# fi + +# 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 diff --git a/leaves/lhdmd.cfg b/leaves/lhdmd.cfg new file mode 100644 index 0000000..72070a6 --- /dev/null +++ b/leaves/lhdmd.cfg @@ -0,0 +1,27 @@ +# __ ____ ____ _____ +# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/ +# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \ +# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ / +# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/ +# /_/ /____/ + +# What ? This kickstart file bootstraps a live desktop machine based on Fedora 34. +# 'l' for live, 'h' for hypervisor, '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 + +%include ldmd.cfg # A base for a minimal live machine based on Fedora 34. +%include bhmd.cfg # A base hypervisor based on Fedora 34 + +%packages + +virt-manager + +%end + +%post + +usermod -a -G libvirt liveuser # Make user "liveuser" part of the existing libvirt group to allow it to interact with the guest-hypervisor. + +%end