Moving aborting when no bootstrap tool is installed from defaults to the respective bootstrap script.
This commit is contained in:
parent
b6da4aec04
commit
ddd0ef9dc0
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue