mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
speedup full-system
This commit is contained in:
parent
e9b9c3adf2
commit
be904c4062
1 changed files with 7 additions and 1 deletions
|
@ -289,11 +289,17 @@ _full_system() {
|
||||||
_PACKAGES="$(pacman -Qqn)"
|
_PACKAGES="$(pacman -Qqn)"
|
||||||
_COUNT=0
|
_COUNT=0
|
||||||
_PACKAGE_COUNT="$(pacman -Qqn | wc -l)"
|
_PACKAGE_COUNT="$(pacman -Qqn | wc -l)"
|
||||||
|
# avoid running mkinitcpio
|
||||||
|
_SKIP="btrfs-progs cryptsetup device-mapper lvm2 mdadm mkinitcpio"
|
||||||
for i in ${_PACKAGES}; do
|
for i in ${_PACKAGES}; do
|
||||||
if [[ "$((${_COUNT}*100/${_PACKAGE_COUNT}-4))" -gt 1 ]]; then
|
if [[ "$((${_COUNT}*100/${_PACKAGE_COUNT}-4))" -gt 1 ]]; then
|
||||||
_progress "$((${_COUNT}*100/${_PACKAGE_COUNT}-4))" "Reinstalling all packages, installing ${i} now..."
|
_progress "$((${_COUNT}*100/${_PACKAGE_COUNT}-4))" "Reinstalling all packages, installing ${i} now..."
|
||||||
fi
|
fi
|
||||||
|
if echo "${_SKIP}" | grep -q ${i}; then
|
||||||
|
pacman -S --noscriptlet --noconfirm ${i} >"${_LOG}" 2>&1 || exit 1
|
||||||
|
else
|
||||||
pacman -S --noconfirm ${i} >"${_LOG}" 2>&1 || exit 1
|
pacman -S --noconfirm ${i} >"${_LOG}" 2>&1 || exit 1
|
||||||
|
fi
|
||||||
_COUNT="$((${_COUNT}+1))"
|
_COUNT="$((${_COUNT}+1))"
|
||||||
done
|
done
|
||||||
_progress "97" "Adding info/man-pages now..."
|
_progress "97" "Adding info/man-pages now..."
|
||||||
|
|
Loading…
Reference in a new issue