X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=3a3e67b3f0c91c1c759b6e9d5bb6567a4134d4c5;hp=5964d55fc6103337cd62ac4f1942f3acffb61ffe;hb=4384a101128e1244ea0f7ce7d7923d9417f1e981;hpb=c87dc4ae138c4ad36070bbfa40cb2c848f01ffb2 diff --git a/grml-debootstrap b/grml-debootstrap index 5964d55..3a3e67b 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -7,8 +7,6 @@ ################################################################################ # http://www.debian.org/releases/stable/i386/index.html.en -set -e # exit on any error - # variables {{{ PN="$(basename $0)" VERSION="$(dpkg --list $PN 2>/dev/null| awk '/^i/ {print $3}')" @@ -499,13 +497,9 @@ if [ $RELEASE = "lenny" ]; then fi ERRORFILE=$(mktemp) -set +e -# TODO: better error handling? yes | mdadm --create "${TARGET}" --level="${RAIDLEVEL}" \ --raid-devices="${NUM_PARTITIONS}" ${METADATA_VERSION} ${SELECTED_PARTITIONS} >/dev/null 2>$ERRORFILE RC=$? -set -e - if [ "$RC" = 0 ] ; then dialog --title "$PN" --msgbox \ "Creating $TARGET was successful." 0 0 @@ -546,6 +540,7 @@ Last chance to quit. Timeout of 10 seconds running.... Do you want to stop now?" 0 0 2>/dev/null } +# }}} # make sure the user is aware of the used configuration {{{ checkconfiguration()