[Pkg-ltsp-devel] patch to add a generic preseed option to
client-builder
Ronny Aasen
ronny at skolelinux.no
Sat Oct 7 20:05:46 UTC 2006
adds a string template. and uses it directly in calling the
ltsp-client-builder
Ronny Aasen
-------------- next part --------------
=== modified file 'debian/ltsp-client-builder.postinst'
--- debian/ltsp-client-builder.postinst 2006-09-28 18:21:05 +0000
+++ debian/ltsp-client-builder.postinst 2006-10-07 20:01:25 +0000
@@ -24,7 +24,16 @@
log "user requested no ltsp chroot"
exit 0
fi
-
+
+#load and use generic arguments
+if db_get ltsp-client-builder/generic_arguments && [ -n "$RET" ] ; then
+ log "generic_arguments : $RET"
+ GENERIC_ARGS="$RET"
+else
+ log "no generic arguments provided"
+fi
+
+
# if everything is fine, run ltsp-build-client on the target disk
db_progress START 0 2 ltsp-client-builder/progress
@@ -36,7 +45,8 @@
DEBIAN_PRIORITY=critical
in-target /usr/sbin/ltsp-build-client \
--mirror file:///cdrom \
- --security-mirror none
+ --security-mirror none \
+ $GENERIC_ARGS
db_progress STEP 1
=== modified file 'debian/ltsp-client-builder.templates'
--- debian/ltsp-client-builder.templates 2006-05-31 18:48:11 +0000
+++ debian/ltsp-client-builder.templates 2006-10-07 19:59:59 +0000
@@ -13,3 +13,10 @@
Template: ltsp-client-builder/progress
Type: text
_Description: Building LTSP chroot...
+
+Template: ltsp-client-builder/generic_arguments
+Type: string
+# Only used for preseeding arguments to ltsp-client-builder.
+Description: additional ltsp-build-client arguments:
+
+
More information about the Pkg-ltsp-devel
mailing list