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
signature.asc
Description: Digital signature