small fixes

This commit is contained in:
teldra 2021-03-16 23:17:22 +01:00
parent 974cc29089
commit 4971424959
2 changed files with 11 additions and 10 deletions

View File

@ -1,15 +1,5 @@
module start "installation" "Installation" "dontcheck"
if [[ "${#ignorepkg[@]}" -gt 0 ]]; then
mkdir -p /etc/xbps.d/
touch /etc/xbps.d/10-ignore-pkg.conf
for ig in "${ignorepkg[@]}"; do
if ! grep -q "${ig}" /etc/xbps.d/10-ignore-pkg.conf; then
echo "ignorepkg=${ig}" >> /etc/xbps.d/10-ignore-pkg.conf
fi
done
fi
for i in ${pkg[@]}; do
for j in ${removepkg[@]}; do
if [[ "${i}" == "${j}" ]]; then

View File

@ -1,5 +1,16 @@
module start "preinstallation" "Preinstallation"
if [[ "${#ignorepkg[@]}" -gt 0 ]]; then
mkdir -p /etc/xbps.d/
touch /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
mkdir -p "${dest}"/var/db/xbps
cp -rf /var/db/xbps/keys/ "${dest}"/var/db/xbps