don't remove firmware on full system, don't install FIX_PACKAGES on full system

This commit is contained in:
Tobias Powalowski 2022-10-08 21:43:55 +02:00
parent 9b9d2d47e6
commit 40f6563d45

View file

@ -332,10 +332,12 @@ _cleanup_cache() {
}
_prepare_graphic() {
if [[ ! -e "/.full-system" ]]; then
echo "Removing firmware files ..."
rm -rf /usr/lib/firmware
# fix libs first, then install packages from defaults
_GRAPHIC="${_FIX_PACKAGES} ${1}"
fi
# saving RAM by calling always cleanup hook and installing each package alone
if [[ -e /var/cache/pacman/pkg/archboot.db ]]; then
echo "Running pacman to install packages: ${_GRAPHIC} ..."