mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
remove not used graphic mode on local media
This commit is contained in:
parent
fbf280d094
commit
3c2c05ac6f
1 changed files with 18 additions and 33 deletions
|
@ -279,23 +279,6 @@ _prepare_graphic() {
|
||||||
# fix libs first, then install packages from defaults
|
# fix libs first, then install packages from defaults
|
||||||
_GRAPHIC="${_FIX_PACKAGES} ${1}"
|
_GRAPHIC="${_FIX_PACKAGES} ${1}"
|
||||||
fi
|
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}..."
|
|
||||||
_INSTALL_SOURCE="file:///var/cache/pacman/pkg"
|
|
||||||
#shellcheck disable=SC2119
|
|
||||||
_create_pacman_conf
|
|
||||||
#shellcheck disable=SC2086
|
|
||||||
pacman -Sy --config ${_PACMAN_CONF} &>/dev/null || exit 1
|
|
||||||
# check if already full system is used
|
|
||||||
for i in ${_GRAPHIC}; do
|
|
||||||
#shellcheck disable=SC2086
|
|
||||||
pacman -S ${i} --config ${_PACMAN_CONF} --noconfirm &>/dev/null || exit 1
|
|
||||||
[[ ! -e "/.full_system" ]] && _cleanup_install
|
|
||||||
[[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]] && _cleanup_cache
|
|
||||||
rm -f /var/log/pacman.log
|
|
||||||
done
|
|
||||||
else
|
|
||||||
echo "Updating environment to latest packages (ignoring packages: ${_GRAPHIC_IGNORE})..."
|
echo "Updating environment to latest packages (ignoring packages: ${_GRAPHIC_IGNORE})..."
|
||||||
_IGNORE=""
|
_IGNORE=""
|
||||||
if [[ -n "${_GRAPHIC_IGNORE}" ]]; then
|
if [[ -n "${_GRAPHIC_IGNORE}" ]]; then
|
||||||
|
@ -314,7 +297,9 @@ _prepare_graphic() {
|
||||||
[[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]] && _cleanup_cache
|
[[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]] && _cleanup_cache
|
||||||
rm -f /var/log/pacman.log
|
rm -f /var/log/pacman.log
|
||||||
done
|
done
|
||||||
[[ "${_STANDARD_BROWSER}" == "firefox" ]] && pacman -S firefox-i18n-{de,en-us,fr,es-es,pt-pt,ru} --noconfirm &>/dev/null || exit 1
|
# install firefox langpacks
|
||||||
|
if [[ "${_STANDARD_BROWSER}" == "firefox" ]]; then
|
||||||
|
pacman -S firefox-i18n-{de,en-us,fr,es-es,pt-pt,ru} --noconfirm &>/dev/null || exit 1
|
||||||
fi
|
fi
|
||||||
if [[ ! -e "/.full_system" ]]; then
|
if [[ ! -e "/.full_system" ]]; then
|
||||||
echo "Removing not used icons..."
|
echo "Removing not used icons..."
|
||||||
|
|
Loading…
Reference in a new issue