common: functions: restore_mirror becomes default mirror for now.

For some reason, it's not restoring the mirror properly, so for now, hardcode it to insert the kali default sources.list.
This commit is contained in:
Steev Klimaszewski
2021-09-09 17:05:15 -05:00
parent 10ba635c18
commit 8882ca4007

View File

@@ -103,8 +103,9 @@ function restore_mirror() {
elif [[ -n "${replace_suite}" ]]; then
export suite=${replace_suite}
fi
echo "deb ${mirror} ${suite} main contrib non-free" > "${work_dir}"/etc/apt/sources.list
echo "#deb-src ${mirror} ${suite} main contrib non-free" >> "${work_dir}"/etc/apt/sources.list
# For now, restore_mirror will put the default kali mirror in, fix after 2021.3
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > "${work_dir}"/etc/apt/sources.list
echo "#deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >> "${work_dir}"/etc/apt/sources.list
}
# Limite use cpu function