Moving aborting when no bootstrap tool is installed from defaults to the respective bootstrap script.

This commit is contained in:
Daniel Baumann 2012-08-27 15:38:27 +02:00
parent b6da4aec04
commit ddd0ef9dc0
3 changed files with 16 additions and 3 deletions

View File

@ -165,9 +165,6 @@ Set_defaults ()
elif [ -x "/usr/bin/cdebootstrap" ]
then
LB_BOOTSTRAP="cdebootstrap"
else
Echo_error "Cannot find /usr/sbin/debootstrap or /usr/bin/cdebootstrap. Please install debootstrap or cdebootstrap, or specify an alternative bootstrapping utility."
exit 1
fi
fi

View File

@ -29,6 +29,14 @@ then
exit 0
fi
if [ ! -x "$(which cdebootstrap 2>/dev/null)" ]
then
echo "E: cdebootstrap - command not found"; \
echo "I: cdebootstrap can be optained from http://ftp.debian.org/debian/pool/main/d/cdebootstrap/"; \
echo "I: On Debian based systems, cdebootstrap can be installed with 'apt-get install debootstrap'."; \
exit 1
fi
# Check architecture
Check_crossarchitectures

View File

@ -29,6 +29,14 @@ then
exit 0
fi
if [ ! -x "$(which debootstrap 2>/dev/null)" ]
then
echo "E: debootstrap - command not found"; \
echo "I: debootstrap can be optained from http://ftp.debian.org/debian/pool/main/d/debootstrap/"; \
echo "I: On Debian based systems, debootstrap can be installed with 'apt-get install debootstrap'."; \
exit 1
fi
# Check architecture
Check_crossarchitectures