2021-05-09 20:58:18 +02:00
|
|
|
module start "preinstallation" "Preinstallation"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-05-12 16:19:55 +02:00
|
|
|
for i in ${pkg[@]}; do
|
|
|
|
for j in ${removepkg[@]}; do
|
|
|
|
if [[ "${i}" == "${j}" ]]; then
|
|
|
|
continue 2
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
toinstall+=( "$i" )
|
|
|
|
done
|
2021-05-09 20:58:18 +02:00
|
|
|
|
|
|
|
mkdir -p "${dest}"/var/db/xbps
|
|
|
|
cp -rf /var/db/xbps/keys/ "${dest}"/var/db/xbps
|
|
|
|
|
2021-05-12 16:19:55 +02:00
|
|
|
inst base-system "${toinstall[@]}"
|
2021-05-09 20:58:18 +02:00
|
|
|
|
|
|
|
module end
|