From 417c88cab86c128213066f989879608f8f78a56c Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Sun, 3 Nov 2024 18:07:41 +0500 Subject: [PATCH] Remove initial setup from fedora --- FedoraKDESpin41.lnibuild | 13 ++++++++++++- FedoraWorkstation40.lnibuild | 5 ++++- FedoraWorkstation41.lnibuild | 5 ++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/FedoraKDESpin41.lnibuild b/FedoraKDESpin41.lnibuild index ff8fe50..b373c78 100644 --- a/FedoraKDESpin41.lnibuild +++ b/FedoraKDESpin41.lnibuild @@ -3,7 +3,18 @@ name="FedoraKDESpin41" imgver="41-$(date '+%Y-%m-%d')" zram="y" -pre_install=() +pre_install() +{ + chroot "$imageroot" /usr/bin/bash -c "rpm --noscripts -e kernel-modules-extra xl2tpd NetworkManager-l2tp plasma-nm-l2tp" || { + log "Failed to remove generic kernel and firmware" ierror + return 1 + } + log "Removing initial setup" internal + chroot "$imageroot" /usr/bin/bash -c "rpm --noscripts -e anaconda-core anaconda-tui anaconda-gui anaconda-widgets initial-setup initial-setup-gui initial-setup-gui-wayland-plasma" || { + log "Failed to remove initial setup" ierror + return 1 + } +} base_system() { diff --git a/FedoraWorkstation40.lnibuild b/FedoraWorkstation40.lnibuild index c8c6b1c..077319e 100644 --- a/FedoraWorkstation40.lnibuild +++ b/FedoraWorkstation40.lnibuild @@ -12,4 +12,7 @@ base_system() packages=() -post_install=() +post_install() +{ + chroot "$imageroot" /usr/bin/bash -c "rpm --noscripts -e gnome-initial-setup" +} diff --git a/FedoraWorkstation41.lnibuild b/FedoraWorkstation41.lnibuild index 59f6c38..05d9b3f 100644 --- a/FedoraWorkstation41.lnibuild +++ b/FedoraWorkstation41.lnibuild @@ -12,4 +12,7 @@ base_system() packages=() -post_install=() +post_install() +{ + chroot "$imageroot" /usr/bin/bash -c "rpm --noscripts -e gnome-initial-setup" +}