1.1 --- a/user-setup Sun Nov 04 20:37:56 2012 +0100
1.2 +++ b/user-setup Mon Apr 22 23:00:48 2013 +0200
1.3 @@ -36,10 +36,22 @@
1.4 PATH=$PATH${PATH:+:}/usr/sbin:/sbin
1.5
1.6 if [ "$AS_ROOT" ]; then
1.7 - sudo debootstrap --include="gnupg,$KEYRING" "$USERINSTALL_CODENAME" "$PACKAGEROOT" "$MIRROR"
1.8 + if ! sudo debootstrap --include="gnupg,$KEYRING" "$USERINSTALL_CODENAME" "$PACKAGEROOT" "$MIRROR" ; then
1.9 + cat 1>&2 <<EOF
1.10 +Failed to complete an installation of the chosen distribution.
1.11 +See the error messages above for more information.
1.12 +EOF
1.13 + exit 1
1.14 + fi
1.15 else
1.16 - fakeroot fakechroot $FAKECHROOT_OPTIONS debootstrap --variant=fakechroot --include="gnupg,$KEYRING" \
1.17 - "$USERINSTALL_CODENAME" "$PACKAGEROOT" "$MIRROR"
1.18 + if ! fakeroot fakechroot $FAKECHROOT_OPTIONS debootstrap --variant=fakechroot --include="gnupg,$KEYRING" \
1.19 + "$USERINSTALL_CODENAME" "$PACKAGEROOT" "$MIRROR" ; then
1.20 + cat 1>&2 <<EOF
1.21 +Failed to complete an installation of the chosen distribution.
1.22 +See the error messages above for more information.
1.23 +EOF
1.24 + exit 1
1.25 + fi
1.26 fi
1.27
1.28 cat 1>&2 <<EOF