void-bash-installer/modules/20-installation/install

39 lines
806 B
Plaintext

module start "installation" "Installation" "dontcheck"
mkdir -p "${dest}"/var/db
cp -rf /var/db/xbps "${dest}"/var/db
if [[ "${#ignorepkg[@]}" -gt 0 ]]; then
mkdir -p "${dest}"/etc/xbps.d/
touch "${dest}"/etc/xbps.d/10-ignore-pkg.conf
for ig in "${ignorepkg[@]}"; do
if ! grep -q "${ig}" "${dest}"/etc/xbps.d/10-ignore-pkg.conf; then
echo "ignorepkg=${ig}" >> "${dest}"/etc/xbps.d/10-ignore-pkg.conf
fi
done
fi
echo ""
echo "pkg install: ${pkg[@]}"
echo ""
echo ""
echo "recent fingerprint: 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d"
echo ""
for i in ${pkg[@]}; do
for j in ${removepkg[@]}; do
if [[ "${i}" == "${j}" ]]; then
continue 2
fi
done
toinstall+=( "$i" )
done
if [[ "${#toinstall[@]}" -gt 0 ]]; then
inst "${toinstall[@]}"
else
echo nothing to do
fi
module end