[Pkg-uml-commit] r130 - trunk/src/rootstrap/modules

Mattia Dongili malattia at costa.debian.org
Sat Jun 24 18:00:02 UTC 2006


Author: malattia
Date: 2006-06-24 18:00:00 +0000 (Sat, 24 Jun 2006)
New Revision: 130

Modified:
   trunk/src/rootstrap/modules/base-config
Log:
check for base config existence in the base-config module

Modified: trunk/src/rootstrap/modules/base-config
===================================================================
--- trunk/src/rootstrap/modules/base-config	2006-06-24 16:17:48 UTC (rev 129)
+++ trunk/src/rootstrap/modules/base-config	2006-06-24 18:00:00 UTC (rev 130)
@@ -25,6 +25,13 @@
 EDITOR=touch
 export EDITOR
 
+# abort if no base-config is found, which happens to
+# be te case for older-than-sarge debian
+if [ -x "$TARGET/usr/sbin/base-config" ] ; then
+	echo "base-config not found"
+	exit 0
+fi
+
 chroot $TARGET debconf-set-selections <<"EOF"
 passwd passwd/make-user boolean false
 base-config apt-setup/uri_type text edit sources list by hand




More information about the Pkg-uml-commit mailing list