On Sun, Mar 29, 2015 at 04:07:34PM -0700, Vagrant Cascadian wrote: > On 2015-03-24, Wolfgang Schweer wrote: > > On Mon, Mar 23, 2015 at 12:02:05PM -0700, Vagrant Cascadian wrote: > >> >> On Tue, Mar 17, 2015 at 10:00:08PM +0100, Wolfgang Schweer wrote: > > Confirmed after having started an USB stick installation on real (and > > very old) hardware; something like /dev/sdXY is mounted on /cdrom inside > > d-i environment. > > > > Inspired by this observation I tried this patch in the virtualbox > > environment (booting from 'cd') and as well on bare metal w/ USB stick: > > > > --- a/ltsp-client-builder.postinst 2015-02-07 18:30:46.000000000 +0100 > > +++ b/ltsp-client-builder.postinst 2015-03-24 16:04:09.510087326 +0100 > > @@ -64,7 +64,7 @@ > > db_progress STEP 1 > > > > if [ "$USE_CDROM" != "false" ] && [ ! -f /target/media/cdrom/.disk/info ]; > > then > > - chroot /target mount /media/cdrom > > + mount $(mount | grep cdrom | cut -d' ' -f1 | head -1) > > /target/media/cdrom > > log "mounting /media/cdrom" > > fi > > > ... > > Installation succeded in both cases. 'head -1' is most probably > > unneeded, added just in case the device is mounted twice. It won't do > > any harm though, I guess. > > I'll try reworking this patch a bit, as it can stand to be more robust > in general, but "fixing" this without understanding what exactly is > wrong, and without being able to reproduce the bug on a standard > debian-installer install worries me...
Yes. The reason might be the different ordering (grub-install/ltsp chroot) and the cd therefore still being mounted on /cdrom/ (d-i env). Mounting the same device for the second time would only succed then if done in d-i env as well (as opposed to inside target). That was the idea for my patch. > One obvious difference I've seen so far is debian-edu runs > ltsp-client-builder after grub-installer. Yes, but I had no luck to figure out why this happens. And I don't understand why the mount problem doesn't show up with USB stick installs if ordering is the reason. > Do debian-edu installs modify /etc/fstab in a way that would result in > /media/cdrom not being mountable? AFAICT, no. > What other differences are there in a debian-edu install? So far I'm not aware of any other ones. Wolfgang
signature.asc
Description: Digital signature