Update build script for debootstrap 1.0.97 or higher

debian-cd 2018.3
Raphaël Hertzog 7 years ago
parent 9b651831e1
commit 893bc5aa5f

@ -141,9 +141,11 @@ fi
# Check we have a good debootstrap
ver_debootstrap=$(dpkg-query -f '${Version}' -W debootstrap)
if ! echo "$ver_debootstrap" | grep -q kali; then
echo "ERROR: You need a Kali patched debootstrap. Your current version: $ver_debootstrap" >&2
exit 1
if dpkg --compare-versions "$ver_debootstrap" lt "1.0.97"; then
if ! echo "$ver_debootstrap" | grep -q kali; then
echo "ERROR: You need debootstrap >= 1.0.97 (or a Kali patched debootstrap). Your current version: $ver_debootstrap" >&2
exit 1
fi
fi
# We need root rights at some point

Loading…
Cancel
Save