[Vagrant Cascadian]
> 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.

Will this work with PXE installs too?  Will USE_CDROM be unset then?
I'll test if you lack the setup for PXE.

Also, the code you propose do not seem correct.  First of all, d-i
mounts in /cdrom, not /media/cdrom (while the /target mount in
/media/cdrom, I believe).  I notice you commited a different version
which seem to make more sense:

  if [ "$USE_CDROM" != "false" ] && [ ! -f /target/media/cdrom/.disk/info ]; 
then
    chroot /target mount /media/cdrom
    log "mounting /media/cdrom"
  fi

Why did you use chroot instead of in-target?
-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to