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

Loading…
Cancel
Save