From 9174ece8d31bc0f3e843d403e69693f55ac002a3 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sat, 11 Sep 2021 11:47:52 +0200 Subject: [PATCH] newer version of flat-dmd with virt-manager autolaunch --- flat/flat-dmd.cfg | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/flat/flat-dmd.cfg b/flat/flat-dmd.cfg index 24ebe96..565f4ef 100644 --- a/flat/flat-dmd.cfg +++ b/flat/flat-dmd.cfg @@ -43,16 +43,9 @@ localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be p dnf update -y # Update the system grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub otherwise the system won't boot properly -# In the %post section of the kickstart file, add the following as the first line: +# In the %post section of the kickstart file, add the following as the first line. Probably useless : leaving this uncommented for the moment # See : https://www.opensourceforu.com/2010/01/roll-out-a-fedora-remix/ -sed -i -e 's/Generic release/LFY Fedora Remix/g' /etc/fedora-release /etc/issue - -%end - -%post --nochroot --logfile=/mnt/sysimage/root/bdmd.log - -# set new default background (doesn't work. Would have to call a script on first boot or something) -# gsettings set org.gnome.desktop.background picture-uri file://mnt/sysimage/usr/share/backgrounds/elementary/default +# sed -i -e 's/Generic release/LFY Fedora Remix/g' /etc/fedora-release /etc/issue %end @@ -60,6 +53,17 @@ sed -i -e 's/Generic release/LFY Fedora Remix/g' /etc/fedora-release /etc/issue truncate -s 0 /mnt/sysimage/usr/share/gnome-initial-setup/vendor.conf # remove content of vendor.conf so that all options are made available +# set new default background (doesn't work. Would have to call a script on first boot or something) +# gsettings set org.gnome.desktop.background picture-uri file://mnt/sysimage/usr/share/backgrounds/elementary/default + +# Autostart virt-manager +cat << EOF > /mnt/sysimage/etc/xdg/autostart/virt-manager.desktop +[Desktop Entry] +Type=Application +Name=Virtual Machine Manager +Exec=virt-manager +EOF + %end %packages --exclude-weakdeps @@ -75,6 +79,7 @@ gnome-initial-setup gnome-shell gnome-terminal nano +neofetch pciutils qemu-guest-agent spice-vdagent