hiya

Thomas Neumann schrieb:
> debootstrap completes with the following message:
> "I: Base system installed successfully."
>
> but the return value is 141 not 0. task_error trips on this.

This patch makes Debian Etch and Debian Lenny debootstrapable again.
Didn't test with other distros or Debian Sid. (return value may change)

tschüß
thomas

--- original/subroutines-linux	2008-10-28 10:40:08.000000000 +0100
+++ patched/subroutines-linux	2008-11-12 10:36:06.000000000 +0100
@@ -168,7 +168,14 @@
 	    echo "No base.tgz found. Calling debootstrap."
 	    [ -z "$FAI_DEBOOTSTRAP" ] && die "$FAI_DEBOOTSTRAP undefined. Aborting"
 	    call_debootstrap $FAI_DEBOOTSTRAP
-	    task_error 801 $?
+            RETVAL=$?
+            echo "debootstrap return value: $RETVAL"
+            # debootstrap completes with the following message:
+            # "I: Base system installed successfully." but the return code is 141
+            if [ $RETVAL = 141 ] ; then
+                 RETVAL=0
+            fi
+            task_error 801 $RETVAL
 	fi
     fi
     # now we can copy fstab

Antwort per Email an