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

20 lines
542 B
Plaintext
Raw Normal View History

2021-03-16 20:17:51 +01:00
module start "preinstallation" "Preinstallation"
2021-03-16 23:17:22 +01:00
if [[ "${#ignorepkg[@]}" -gt 0 ]]; then
2021-03-16 23:51:23 +01:00
mkdir -p "${dest}"/etc/xbps.d/
touch "${dest}"/etc/xbps.d/10-ignore-pkg.conf
2021-03-16 23:17:22 +01:00
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-03-16 20:29:58 +01:00
mkdir -p "${dest}"/var/db/xbps
cp -rf /var/db/xbps/keys/ "${dest}"/var/db/xbps
2021-03-16 20:17:51 +01:00
inst base-system
module end