On 2014-08-19 07:47:17 -0500, Petter Reinholdtsen wrote:
> [Vagrant Cascadian]
>> Yes, it needs to be mounted in /target/cdrom when ltsp-client-builder
>> runs. This seems to be a change in debian-installer again, then.
>
> Aha.
>
>> It would seem ltsp-client-builder is going to need to get much more
>> intelligent about this...
>
> I hope you can find a good solution for it, as it currently block Debian
> Edu Jessie testing of the Think Client Server profile. :)

This is my best try so far, and assumes that /media/cdrom is the
mountpoint:

diff --git a/ltsp-client-builder.postinst b/ltsp-client-builder.postinst
index 33100d8..a6f9b87 100644
--- a/ltsp-client-builder.postinst
+++ b/ltsp-client-builder.postinst
@@ -40,6 +40,10 @@ if db_get ltsp-client-builder/build-client-opts && [ -n 
"$RET" ] ; then
     log "ltsp-build-client options: $BUILD_CLIENT_OPTS"
 fi
 
+if [ "$USE_CDROM" != "false" ] && [ ! -f /media/cdrom/.disk/info ]; then
+    in-target mount /media/cdrom
+fi
+
 # configure network interface
 if db_get ltsp-client-builder/configure_network_interface && [ "$RET" != 
"false" ]; then
     CONFIGURE_NETWORK_INTERFACE=true


I haven't yet tested with the media as a USB stick; will try that now.


live well,
  vagrant

Attachment: pgpWZPWdRGJZu.pgp
Description: PGP signature

Reply via email to