[Pkg-ltsp-devel] Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment

Wolfgang Schweer wschweer at arcor.de
Mon Mar 30 08:06:30 UTC 2015


On Sun, Mar 29, 2015 at 05:34:40PM -0700, Vagrant Cascadian wrote:
> 
> Here's an alternate patch that worked for me with both CD and USB
> installs, and has a fallback to the old behavior if none of the mounts
> contain .disk/info. Please try it and let me know if it solves your
> issue:
> 
> diff --git a/ltsp-client-builder.postinst b/ltsp-client-builder.postinst
> index 4b9c057..6b9dd59 100644
> --- a/ltsp-client-builder.postinst
> +++ b/ltsp-client-builder.postinst
> @@ -64,8 +64,20 @@ done
>  db_progress STEP 1
>  
>  if [ "$USE_CDROM" != "false" ] && [ ! -f /target/media/cdrom/.disk/info ]; then
> -    chroot /target mount /media/cdrom
> -    log "mounting /media/cdrom"
> +    # Read mountpoints of cdrom devices from /proc/mounts, and mount
> +    # at /target/media/cdrom/
> +    while [ ! -f /target/media/cdrom/.disk/info ] && read device mountpoint otherstuff ; do
> +        case "$mountpoint" in
> +            *cdrom*) log "mounting $device on /target/media/cdrom"
> +                 mount "$device" /target/media/cdrom
> +                 ;;
> +        esac
> +    done < /proc/mounts
> +    if [ ! -f /target/media/cdrom/.disk/info ]; then
> +	# Last-ditch failsafe...
> +	log "Mounting /media/cdrom in the chroot."
> +	in-target mount /media/cdrom
> +    fi
>  fi
>  
>  # workaround for: http://bugs.debian.org/390647
 
Yes, this patch solves the issue (virtualbox CD installs).

Wolfgang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ltsp-devel/attachments/20150330/c9cdeecd/attachment-0002.sig>


More information about the Pkg-ltsp-devel mailing list