🚧 move scripts back to archiso

This commit is contained in:
Vladislav Nepogodin committed 2022-03-29 14:51:07 +04:00
1 parent df3c83e811
commit 29eb30e392
12 files changed
+263 -15

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
_clean_packages(){
local _leave_these_packages="base\nbase-devel\ncachyos-keyring\ncachyos-mirrorlist\ncachyos-v3-mirrorlist\ncachyos-hello\ngrub\nefibootmgr\n"
local _packages_to_remove=($(comm -23 <(pacman -Qqt | sort) <({ pacman -Qqg base-devel; printf $_leave_these_packages; } | sort -u)))
local xx
# @ does one by one to avoid errors in the entire process
# * can be used to treat all packages in one command
for xx in ${_packages_to_remove[@]}; do pacman -Rsc $xx --noconfirm; done
rm /etc/sddm.conf || true
}
_clean_packages