check whether cdebootstrap succeeded

This commit is contained in:
josch 2009-09-13 12:14:11 +00:00
parent 50753fec0b
commit 8ae81f0478

View file

@ -39,8 +39,8 @@ DEPS_NETMGMT="ifupdown,netbase,iputils-ping,dnsmasq,dhcp3-client,netplug"
DEPS_NETAPPS="curl,wget,openssh-server,vpnc,rsync"
cdebootstrap --include $DEPS_SYSTEM,$DEPS_CONSOLE,$DEPS_WLAN,$DEPS_BT,$DEPS_NETMGMT,$DEPS_NETAPPS --flavour=minimal $DIST $ROOTDIR http://ftp.debian.org/debian
if [ -n "`cat $ROOTDIR/etc/apt/sources.list | grep invalid`" ]; then
echo "debootstrap failed"
if [ $? -ne 0 ]; then
echo "cdebootstrap failed"
exit 1
fi