Package: ppp-udeb
Version: 2.4.4rel-8
Tags: patch d-i

As discussed on the debian-boot list [1], ppp-udeb fails when the question 
netcfg/get_hostname is preseeded because it fails to allow for the debconf 
error condition that indicates the question was allready "seen".

The attached patch fixes this issue.

Cheers,
FJP

[1] http://lists.debian.org/debian-boot/2007/11/msg00625.html

diff -u ppp-2.4.4rel/debian/changelog ppp-2.4.4rel/debian/changelog
--- ppp-2.4.4rel/debian/changelog
+++ ppp-2.4.4rel/debian/changelog
@@ -1,3 +1,9 @@
+ppp (2.4.4rel-10) UNRELEASED; urgency=low
+
+  * ppp-udeb: allow for preseeding of the netcfg/get_hostname template.
+
+ -- Frans Pop <[EMAIL PROTECTED]>  Sun, 09 Dec 2007 22:12:48 +0100
+
 ppp (2.4.4rel-9) unstable; urgency=low
 
   * ppp-udeb: quote username and password in pap/chap secrets since they
diff -u ppp-2.4.4rel/debian/ppp-udeb.postinst ppp-2.4.4rel/debian/ppp-udeb.postinst
--- ppp-2.4.4rel/debian/ppp-udeb.postinst
+++ ppp-2.4.4rel/debian/ppp-udeb.postinst
@@ -169,14 +169,14 @@
 
 # Ask for the hostname to use for the system (using the netcfg template!)
 while true; do
-	db_input high netcfg/get_hostname
+	db_input high netcfg/get_hostname || [ $? -eq 30 ]
 	db_go || exit 10
 	db_get netcfg/get_hostname
 	HOSTNAME="$RET"
 	if valid_hostname "$HOSTNAME"; then
 		break
 	fi
-	db_input high netcfg/invalid_hostname
+	db_input high netcfg/invalid_hostname || true
 	db_fset netcfg/get_hostname seen false
 done
 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to