Remove initial setup from fedora

This commit is contained in:
timoxa0 2024-11-03 18:07:41 +05:00
parent e6b30c3e5a
commit 417c88cab8
3 changed files with 20 additions and 3 deletions

View file

@ -3,7 +3,18 @@ name="FedoraKDESpin41"
imgver="41-$(date '+%Y-%m-%d')" imgver="41-$(date '+%Y-%m-%d')"
zram="y" 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() base_system()
{ {

View file

@ -12,4 +12,7 @@ base_system()
packages=() packages=()
post_install=() post_install()
{
chroot "$imageroot" /usr/bin/bash -c "rpm --noscripts -e gnome-initial-setup"
}

View file

@ -12,4 +12,7 @@ base_system()
packages=() packages=()
post_install=() post_install()
{
chroot "$imageroot" /usr/bin/bash -c "rpm --noscripts -e gnome-initial-setup"
}