[Pkg-uml-commit] r143 - trunk/src/rootstrap/modules
Mattia Dongili
malattia at costa.debian.org
Fri Aug 18 17:44:51 UTC 2006
Author: malattia
Date: 2006-08-18 17:44:51 +0000 (Fri, 18 Aug 2006)
New Revision: 143
Modified:
trunk/src/rootstrap/modules/base-config
Log:
reorganize code a little
Modified: trunk/src/rootstrap/modules/base-config
===================================================================
--- trunk/src/rootstrap/modules/base-config 2006-08-18 17:12:50 UTC (rev 142)
+++ trunk/src/rootstrap/modules/base-config 2006-08-18 17:44:51 UTC (rev 143)
@@ -25,17 +25,19 @@
EDITOR=touch
export EDITOR
-# abort if no base-config is found, which happens to
+# avoid base-config if it's missing, 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
+# The module name is misleading
+if [ -x "$TARGET/usr/sbin/base-config" ] ; then
-chroot $TARGET debconf-set-selections <<"EOF"
+ chroot $TARGET debconf-set-selections <<"EOF"
passwd passwd/make-user boolean false
base-config apt-setup/uri_type text edit sources list by hand
base-config base-config/pkgsel select nothing - you may manually run apt-get or any of the above later
EOF
-chroot $TARGET base-config
+ chroot $TARGET base-config
+else
+ echo "'base-config' not found, skipping."
+fi
+
More information about the Pkg-uml-commit
mailing list