From 22ddbf15d50f505441e504a5d0fa150a3a246884 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 19 Aug 2021 20:04:02 +0200 Subject: [PATCH] cdrom-based installation make it more generic --- iso/idhmd.cfg | 5 ++++- iso/idmd.cfg | 6 +++++- iso/imd.cfg | 11 ++++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/iso/idhmd.cfg b/iso/idhmd.cfg index 1a1d5af..d1f9dfa 100644 --- a/iso/idhmd.cfg +++ b/iso/idhmd.cfg @@ -12,10 +12,13 @@ # USAGE : Press the `tab` or 'e' key during POST and apend that after the 'quiet' string : # inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/iso/idhmd.cfg -# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents. +# ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents. # Bye bye! %include https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/bmd.cfg # Include bmd.cfg, a minimal system +%include https://git.phyllo.me/home/kickstart/raw/branch/master/iso/idmd.cfg # Include idmd.cfg, a desktop machine + +reboot --kexec # Reboot straight into the system after a successfull installation %post # Beginning of %post section diff --git a/iso/idmd.cfg b/iso/idmd.cfg index 0514e83..63ba932 100644 --- a/iso/idmd.cfg +++ b/iso/idmd.cfg @@ -17,14 +17,18 @@ %include https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/bmd.cfg # Include bmd.cfg, a minimal system -%post # Beginning of the post-installation section +reboot --kexec # Reboot straight into the system after a successfull installation + +%post # Beginning of the post-installation section. We put that here because the iso file might not include those packages. dnf install -y gnome-shell gnome-terminal nano # Minimal GNOME shell or desktop environment plus the nano text editor dnf install -y spice-vdagent # Try to install spice-vdagent after the installation is done dnf install -y dejavu-sans-mono-fonts # the gnome-shell package doesn't include much fonts by default, resulting in weird spacings in the gnome-terminal. dnf install -y elementary-wallpapers-gnome.noarch # Gorgeous wallpapers dnf install -y wpa_supplicant # WPA Supplicant for Linux. Not integrated by default in gnome-shell, but necessary to configure wireless networks through the Network Manager. +dnf install -y gnome-initial-setup # Add GNOME initial setup too. Does work. dnf remove -y gnome-tour # We don't want GNOME-tour to open at launch so we delete it + systemctl set-default graphical.target # Set the desktop environment as the default booting target with systemd. Would this command do the trick ? (outside the post or package section) xconfig --startxonboot %end # End of the %post section \ No newline at end of file diff --git a/iso/imd.cfg b/iso/imd.cfg index daea7ba..bb9bee0 100644 --- a/iso/imd.cfg +++ b/iso/imd.cfg @@ -15,4 +15,13 @@ # ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents. # Bye bye! -%include https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/bmd.cfg # Include bmd.cfg, a minimal system \ No newline at end of file +%include https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/bmd.cfg # Include bmd.cfg, a minimal system + +firstboot --enable --reconfig # Initial Setup will start after the first reboot +reboot --kexec # Reboot straight into the system after a successfull installation + +%packages --exclude-weakdeps # Beginning of the packages section. Do not include weak dependencies. + +initial-setup # Install the initial setup package. + +%end # End of the packages section \ No newline at end of file