Debian Bug report logs - #780591
ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment

version graph

Package: ltsp-client-builder; Maintainer for ltsp-client-builder is Debian LTSP Maintainers <team+ltsp@tracker.debian.org>;

Reported by: Wolfgang Schweer <wschweer@arcor.de>

Date: Mon, 16 Mar 2015 12:54:02 UTC

Severity: serious

Tags: d-i, moreinfo, patch

Fixed in version ltsp/5.5.4-4

Done: Vagrant Cascadian <vagrant@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#780591; Package src:ltsp. (Mon, 16 Mar 2015 12:54:07 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
New Bug report received and forwarded. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Mon, 16 Mar 2015 12:54:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Mon, 16 Mar 2015 13:23:31 +0100
[Message part 1 (text/plain, inline)]
Source: ltsp
Version: 5.5.4-3
Severity: important
Tags: d-i
User: debian-edu@lists.debian.org
Usertags: debian-edu

Hi,

during tests to install a Debian Edu combined server (Profiles 
Main-Server, Workstation, Thin-Client-server) in a virtualbox 
environment LTSP chroot installation fails with:

Mar 16 10:58:56 main-menu[177]: (process:6859): mount: /dev/sr0 is already mounted or /media/cdrom0 busy
Mar 16 10:58:56 main-menu[177]: WARNING **: Configuring 'ltsp-client-builder' failed with error code 32
Mar 16 10:58:56 main-menu[177]: WARNING **: Menu item 'ltsp-client-builder' failed.

This ISO image was used:
ftp://ftp.skolelinux.org/cd-jessie-usbstick/debian-edu-amd64-i386-BD-1.iso

IIRC (tried too many variants), proceeding as follows (setting debconf 
priority each time back to 'critical' using d-i main-menu) lets the 
installation succeed:

Install grub (from d-i main-menu)
Eject cdrom  (from d-i main-menu)
Insert cdrom again (from virtualbox VM menu) 
Install LTSP chroot (from d-i main-menu)

During the last step this is the output of 'chroot target mount': 
----------------------------------------------------------------- 
/dev/mapper/vg_system-root on / type ext4 
(rw,relatime,errors=remount-ro,data=ordered) /dev/sda1 on /boot type 
ext4 (rw,relatime,data=ordered) /dev/mapper/vg_system-opt on /opt type 
ext4 (rw,relatime,data=ordered) /dev/mapper/vg_system-skole+backup on 
/skole/backup type ext4 (rw,relatime,data=ordered) 
/dev/mapper/vg_system-skole+tjener+home0 on /skole/tjener/home0 type 
ext4 (rw,relatime,data=ordered) /dev/mapper/vg_system-usr on /usr type 
ext4 (rw,relatime,data=ordered) /dev/mapper/vg_system-var on /var type 
ext4 (rw,relatime,data=ordered) /dev/mapper/vg_system-var+log on 
/var/log type ext4 (rw,relatime,data=ordered) 
/dev/mapper/vg_system-var+opt+ltsp+swapfiles on /var/opt/ltsp/swapfiles 
type ext4 (rw,relatime,data=ordered) 
/dev/mapper/vg_system-var+spool+squid3 on /var/spool/squid3 type ext4 
(rw,relatime,data=ordered) devtmpfs on /dev type devtmpfs 
(rw,relatime,size=1813248k,nr_inodes=216463,mode=755) /dev/sr0 on 
/media/cdrom type iso9660 (ro,nosuid,nodev,noexec,relatime) proc on 
/proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) 
devpts on /dev/pts type devpts 
(rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) none on /run 
type tmpfs (rw,nosuid,relatime,size=363336k,mode=755) 
/var/cache/apt/archives on /opt/ltsp/i386/var/cache/apt/archives type 
none (rw,bind) /media/cdrom on /opt/ltsp/i386/media/cdrom type none 
(ro,bind) proc on /opt/ltsp/i386/proc type proc (rw) sys on 
/opt/ltsp/i386/sys type sysfs (rw) 
---------------------------------------------------------------------

Setting up the server in virtualbox used to work at least some weaks 
ago, but I don't remember if it was 5.5.4-3 or 5.5.4-2 back then.

Feel free to reassign the bug if failing isn't caused by 
ltsp-client-builder.

Wolfgang


[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#780591; Package src:ltsp. (Mon, 16 Mar 2015 17:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Mon, 16 Mar 2015 17:06:04 GMT) (full text, mbox, link).


Message #10 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Wolfgang Schweer <wschweer@arcor.de>, 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Mon, 16 Mar 2015 10:04:13 -0700
[Message part 1 (text/plain, inline)]
Control: reassign -1 debian-edu-config

On 2015-03-16, Wolfgang Schweer wrote:
> during tests to install a Debian Edu combined server (Profiles 
> Main-Server, Workstation, Thin-Client-server) in a virtualbox 
> environment LTSP chroot installation fails with:
>
> Mar 16 10:58:56 main-menu[177]: (process:6859): mount: /dev/sr0 is already mounted or /media/cdrom0 busy
> Mar 16 10:58:56 main-menu[177]: WARNING **: Configuring 'ltsp-client-builder' failed with error code 32
> Mar 16 10:58:56 main-menu[177]: WARNING **: Menu item 'ltsp-client-builder' failed.

This is probably because debian-edu-config still ships a mounting script
which is no longer needed, as the mounting is implemented in the
ltsp-client-builder .udeb. Went over the change in how LTSP mounts the
cdrom extensively back in September:

  https://bugs.debian.org/758500

I just tested to see that it still works with the debian-installer daily
images, and had not trouble (jessie d-i images don't work due to
kernel/module version mismatches).


The fix is to remove the debian-edu-config hook:

  /usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/099-mount-cdrom


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Bug reassigned from package 'src:ltsp' to 'debian-edu-config'. Request was from Vagrant Cascadian <vagrant@debian.org> to 780591-submit@bugs.debian.org. (Mon, 16 Mar 2015 17:06:04 GMT) (full text, mbox, link).


No longer marked as found in versions ltsp/5.5.4-3. Request was from Vagrant Cascadian <vagrant@debian.org> to 780591-submit@bugs.debian.org. (Mon, 16 Mar 2015 17:06:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Mon, 16 Mar 2015 18:03:11 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Mon, 16 Mar 2015 18:03:11 GMT) (full text, mbox, link).


Message #19 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Vagrant Cascadian <vagrant@debian.org>
Cc: 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Mon, 16 Mar 2015 18:32:56 +0100
[Message part 1 (text/plain, inline)]
On Mon, Mar 16, 2015 at 10:04:13AM -0700, Vagrant Cascadian wrote:
> 
> The fix is to remove the debian-edu-config hook:
> 
>   /usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/099-mount-cdrom
 
Thanks for the quick reply.

IIRC removing this hook was among the first things I tried, but w/o 
success.

Will check it again.

Wolfgang

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Mon, 16 Mar 2015 18:15:04 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Mon, 16 Mar 2015 18:15:04 GMT) (full text, mbox, link).


Message #24 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Vagrant Cascadian <vagrant@debian.org>
Cc: 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Mon, 16 Mar 2015 18:52:20 +0100
[Message part 1 (text/plain, inline)]
On Mon, Mar 16, 2015 at 10:04:13AM -0700, Vagrant Cascadian wrote:
> 
> The fix is to remove the debian-edu-config hook:
> 
>   /usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/099-mount-cdrom
 
With this file removed the chroot installation fails with the same error 
message.

So maybe something inside d-i changed the last weeks.

Wolfgang

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Mon, 16 Mar 2015 20:27:10 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Mon, 16 Mar 2015 20:27:10 GMT) (full text, mbox, link).


Message #29 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Wolfgang Schweer <wschweer@arcor.de>
Cc: 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Mon, 16 Mar 2015 13:24:20 -0700
[Message part 1 (text/plain, inline)]
On 2015-03-16, Wolfgang Schweer wrote:
> On Mon, Mar 16, 2015 at 10:04:13AM -0700, Vagrant Cascadian wrote:
>> The fix is to remove the debian-edu-config hook:
>> 
>>   /usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/099-mount-cdrom
>  
> With this file removed the chroot installation fails with the same error 
> message.

It should definitely be removed; it is incompatible with the ltsp
packages in Jessie, and can lead to the exact sort of symptoms you're
experiencing...

Did you remove it manually, or from the installed debian-edu-config
package? The timing of removal may be significant.


> So maybe something inside d-i changed the last weeks.

That's possible, though it works with the d-i daily images, at least
using libvirt (I haven't actually tested using virtualbox).


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Mon, 16 Mar 2015 21:06:05 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Mon, 16 Mar 2015 21:06:05 GMT) (full text, mbox, link).


Message #34 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Vagrant Cascadian <vagrant@debian.org>
Cc: 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Mon, 16 Mar 2015 21:41:20 +0100
[Message part 1 (text/plain, inline)]
On Mon, Mar 16, 2015 at 01:24:20PM -0700, Vagrant Cascadian wrote:
> On 2015-03-16, Wolfgang Schweer wrote:
> > On Mon, Mar 16, 2015 at 10:04:13AM -0700, Vagrant Cascadian wrote:
> >> The fix is to remove the debian-edu-config hook:
> >> 
> >>   /usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/099-mount-cdrom
> >  
> > With this file removed the chroot installation fails with the same error 
> > message.
> 
> It should definitely be removed; it is incompatible with the ltsp
> packages in Jessie, and can lead to the exact sort of symptoms you're
> experiencing...

o.k.
 
> Did you remove it manually, or from the installed debian-edu-config
> package? The timing of removal may be significant.

removed it inside target while software was installed before the LTSP 
step happened. I guessed this would be early enough.

d-i syslog up to the failure occurs is here (short time only):
http://edu.schweer-online.de/syslog.bz2

any idea?

Wolfgang

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Tue, 17 Mar 2015 09:06:05 GMT) (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Tue, 17 Mar 2015 09:06:05 GMT) (full text, mbox, link).


Message #39 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: Wolfgang Schweer <wschweer@arcor.de>, 780591@bugs.debian.org, Vagrant Cascadian <vagrant@debian.org>
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Tue, 17 Mar 2015 10:03:15 +0100
[Wolfgang Schweer]
>> It should definitely be removed; it is incompatible with the ltsp
>> packages in Jessie, and can lead to the exact sort of symptoms you're
>> experiencing...
>
> o.k.

This is the the script triggering the problem.  Probably should be
removed anyway, or at least disabled with newer ltsp versions.

>> Did you remove it manually, or from the installed debian-edu-config
>> package? The timing of removal may be significant.
>
> removed it inside target while software was installed before the LTSP 
> step happened. I guessed this would be early enough.
>
> d-i syslog up to the failure occurs is here (short time only):
> http://edu.schweer-online.de/syslog.bz2
>
> any idea?

I tested a usbstick install, and as far as I can tell, the failing mount
is the code in the udeb postinst:

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

I added 'set -x' at the top of the postinst script to figure out what is
going on.  I'm not sure why it fail.

-- 
Happy hacking
Petter Reinholdtsen



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Tue, 17 Mar 2015 16:45:09 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Tue, 17 Mar 2015 16:45:09 GMT) (full text, mbox, link).


Message #44 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Petter Reinholdtsen <pere@hungry.com>, Wolfgang Schweer <wschweer@arcor.de>, 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Tue, 17 Mar 2015 09:42:18 -0700
[Message part 1 (text/plain, inline)]
On 2015-03-17, Petter Reinholdtsen wrote:
> [Wolfgang Schweer]
>>> Did you remove it manually, or from the installed debian-edu-config
>>> package? The timing of removal may be significant.
>>
>> removed it inside target while software was installed before the LTSP 
>> step happened. I guessed this would be early enough.
>>
>> d-i syslog up to the failure occurs is here (short time only):
>> http://edu.schweer-online.de/syslog.bz2
>>
>> any idea?
>
> I tested a usbstick install, and as far as I can tell, the failing mount
> is the code in the udeb postinst:
>
> if [ "$USE_CDROM" != "false" ] && [ ! -f /target/media/cdrom/.disk/info ]; then
>     chroot /target mount /media/cdrom
>     log "mounting /media/cdrom"
> fi
>
> I added 'set -x' at the top of the postinst script to figure out what is
> going on.  I'm not sure why it fail.

Is it mounted at that point? Does /target/etc/fstab contain an entry for
/media/cdrom (or one that the /media/cdrom symlink points to)? Is
USE_CDROM set to "false" (either through preseeding or boot prompt
ltsp-client-builder/use_cdrom=true/false)? Do the debian-edu images
contain ".disk/info"?

Those are a few things that could go wrong off the top of my head...

It worked for me using the d-i daily images, so I suspect some
difference with the debian-edu images...


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Tue, 17 Mar 2015 17:21:10 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Tue, 17 Mar 2015 17:21:10 GMT) (full text, mbox, link).


Message #49 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Vagrant Cascadian <vagrant@debian.org>
Cc: Petter Reinholdtsen <pere@hungry.com>, 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Tue, 17 Mar 2015 18:18:20 +0100
[Message part 1 (text/plain, inline)]
On Tue, Mar 17, 2015 at 09:42:18AM -0700, Vagrant Cascadian wrote:
> On 2015-03-17, Petter Reinholdtsen wrote:
> > I tested a usbstick install, and as far as I can tell, the failing mount
> > is the code in the udeb postinst:
> >
> > if [ "$USE_CDROM" != "false" ] && [ ! -f /target/media/cdrom/.disk/info ]; then
> >     chroot /target mount /media/cdrom
> >     log "mounting /media/cdrom"
> > fi
> >
> > I added 'set -x' at the top of the postinst script to figure out what is
> > going on.  I'm not sure why it fail.
> 
> Is it mounted at that point?

IIRC, during 'select and install software' the image is mounted either 
as /dev/sr0 on /cdrom in the d-i environment or as /dev/sr0 on 
/media/cdrom0 in the target. Seems to be that it is unmounted from 
/cdrom after packages have been fetched and then mounted again if the 
new ones are needed. I haven't investigated this intensively.

> Does /target/etc/fstab contain an entry for
> /media/cdrom (or one that the /media/cdrom symlink points to)?

Yes, for /media/cdrom0 (which is a directory, while cdrom is a symlink
pointing to cdrom0).

> Is USE_CDROM set to "false" (either through preseeding or boot prompt 
> ltsp-client-builder/use_cdrom=true/false)? 

No.

> Do the debian-edu images contain ".disk/info"?

Yes.
 
> It worked for me using the d-i daily images, so I suspect some
> difference with the debian-edu images...
 
Maybe, yes.

Wolfgang

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Tue, 17 Mar 2015 18:27:04 GMT) (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Tue, 17 Mar 2015 18:27:04 GMT) (full text, mbox, link).


Message #54 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: Wolfgang Schweer <wschweer@arcor.de>, Vagrant Cascadian <vagrant@debian.org>
Cc: 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Tue, 17 Mar 2015 19:25:11 +0100
> if [ "$USE_CDROM" != "false" ] && [ ! -f /target/media/cdrom/.disk/info ]; then
>     chroot /target mount /media/cdrom
>     log "mounting /media/cdrom"
> fi

When I just tested and the LTSP installation failed, the USE_CDROM value
is 'true' and nothing is mounted in /target/media/.  The CD from
/dev/sr0 is mounted on /cdrom/.

-- 
Happy hacking
Petter Reinholdtsen



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Tue, 17 Mar 2015 21:03:05 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Tue, 17 Mar 2015 21:03:05 GMT) (full text, mbox, link).


Message #59 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Petter Reinholdtsen <pere@hungry.com>
Cc: Vagrant Cascadian <vagrant@debian.org>, 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Tue, 17 Mar 2015 22:00:08 +0100
[Message part 1 (text/plain, inline)]
On Tue, Mar 17, 2015 at 07:25:11PM +0100, Petter Reinholdtsen wrote:
> 
> > if [ "$USE_CDROM" != "false" ] && [ ! -f /target/media/cdrom/.disk/info ]; then
> >     chroot /target mount /media/cdrom
> >     log "mounting /media/cdrom"
> > fi
> 
> When I just tested and the LTSP installation failed, the USE_CDROM value
> is 'true' and nothing is mounted in /target/media/.  The CD from
> /dev/sr0 is mounted on /cdrom/.
 
With this (trivial) modification installation succeeded.

--- a/postinst	2015-03-06 10:00:00.000000000 +0100
+++ ltsp-client-builder.postinst	2015-03-17 21:39:38.824682599 +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 /dev/cdrom /target/media/cdrom
     log "mounting /media/cdrom"
 fi
 

Wolfgang

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Wed, 18 Mar 2015 18:51:08 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Wed, 18 Mar 2015 18:51:08 GMT) (full text, mbox, link).


Message #64 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Petter Reinholdtsen <pere@hungry.com>
Cc: Vagrant Cascadian <vagrant@debian.org>, 780591@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Wed, 18 Mar 2015 19:48:05 +0100
[Message part 1 (text/plain, inline)]
On Tue, Mar 17, 2015 at 10:00:08PM +0100, Wolfgang Schweer wrote:
> On Tue, Mar 17, 2015 at 07:25:11PM +0100, Petter Reinholdtsen wrote:
> > 
> > > if [ "$USE_CDROM" != "false" ] && [ ! -f /target/media/cdrom/.disk/info ]; then
> > >     chroot /target mount /media/cdrom
> > >     log "mounting /media/cdrom"
> > > fi
> > 
> > When I just tested and the LTSP installation failed, the USE_CDROM value
> > is 'true' and nothing is mounted in /target/media/.  The CD from
> > /dev/sr0 is mounted on /cdrom/.
>  
> With this (trivial) modification installation succeeded.
> 
> --- a/postinst	2015-03-06 10:00:00.000000000 +0100
> +++ ltsp-client-builder.postinst	2015-03-17 21:39:38.824682599 +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 /dev/cdrom /target/media/cdrom
>      log "mounting /media/cdrom"
>  fi
  
Tested once again using the just rsynced usbstick ISO image (containing 
newest udebs): LTSP chroot installation fails as before.

After /var/lib/dpkg/info/ltsp-client-builder.postinst (d-i env) had been 
modified like stated above, choosing LTSP chroot installation out of the 
d-i main-menu once again made the chroot installation start.

So I guess the only chance to get the Sebian Edu LTSP installation going 
would be a fixed version of the ltsp-client-builder udeb. And this bug 
should be reassigned to ltsp, although most probably changes of d-i 
component caused this issue since some weeks.

Wolfgang

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Edu Developers <debian-edu@lists.debian.org>:
Bug#780591; Package debian-edu-config. (Fri, 20 Mar 2015 17:45:12 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to Debian Edu Developers <debian-edu@lists.debian.org>. (Fri, 20 Mar 2015 17:45:12 GMT) (full text, mbox, link).


Message #69 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: 780591@bugs.debian.org
Cc: Vagrant Cascadian <vagrant@debian.org>, Petter Reinholdtsen <pere@hungry.com>
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Fri, 20 Mar 2015 18:40:28 +0100
[Message part 1 (text/plain, inline)]
Control: reassign -1 ltsp-client-builder-udeb

On Wed, Mar 18, 2015 at 07:48:05PM +0100, Wolfgang Schweer wrote:
> On Tue, Mar 17, 2015 at 10:00:08PM +0100, Wolfgang Schweer wrote:
> > With this (trivial) modification installation succeeded.
> > 
> > --- a/postinst	2015-03-06 10:00:00.000000000 +0100
> > +++ ltsp-client-builder.postinst	2015-03-17 21:39:38.824682599 +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 /dev/cdrom /target/media/cdrom
> >      log "mounting /media/cdrom"
> >  fi
>   
> Tested once again using the just rsynced usbstick ISO image (containing 
> newest udebs): LTSP chroot installation fails as before.
> 
> After /var/lib/dpkg/info/ltsp-client-builder.postinst (d-i env) had been 
> modified like stated above, choosing LTSP chroot installation out of the 
> d-i main-menu once again made the chroot installation start.

IMO there is no way for debian-edu-config to fix this LTSP chroot 
installation failure as it seems to be related to d-i components.

Please consider to check and test the provided patch.
 
Wolfgang

[signature.asc (application/pgp-signature, inline)]

Bug reassigned from package 'debian-edu-config' to 'ltsp-client-builder-udeb'. Request was from Wolfgang Schweer <wschweer@arcor.de> to 780591-submit@bugs.debian.org. (Fri, 20 Mar 2015 17:45:12 GMT) (full text, mbox, link).


Bug reassigned from package 'ltsp-client-builder-udeb' to 'ltsp-client-builder'. Request was from Wolfgang Schweer <wschweer@arcor.de> to control@bugs.debian.org. (Fri, 20 Mar 2015 17:51:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#780591; Package ltsp-client-builder. (Fri, 20 Mar 2015 18:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Fri, 20 Mar 2015 18:39:04 GMT) (full text, mbox, link).


Message #78 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Wolfgang Schweer <wschweer@arcor.de>, 780591@bugs.debian.org
Cc: Petter Reinholdtsen <pere@hungry.com>
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Fri, 20 Mar 2015 11:34:45 -0700
[Message part 1 (text/plain, inline)]
Control: severity -1 serious
Control: tags -1 patch

On 2015-03-20, Wolfgang Schweer wrote:
> Control: reassign -1 ltsp-client-builder-udeb
>
> On Wed, Mar 18, 2015 at 07:48:05PM +0100, Wolfgang Schweer wrote:
>> On Tue, Mar 17, 2015 at 10:00:08PM +0100, Wolfgang Schweer wrote:
>> > With this (trivial) modification installation succeeded.
>> > 
>> > --- a/postinst	2015-03-06 10:00:00.000000000 +0100
>> > +++ ltsp-client-builder.postinst	2015-03-17 21:39:38.824682599 +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 /dev/cdrom /target/media/cdrom
>> >      log "mounting /media/cdrom"
>> >  fi
>>   
>> Tested once again using the just rsynced usbstick ISO image (containing 
>> newest udebs): LTSP chroot installation fails as before.
>> 
>> After /var/lib/dpkg/info/ltsp-client-builder.postinst (d-i env) had been 
>> modified like stated above, choosing LTSP chroot installation out of the 
>> d-i main-menu once again made the chroot installation start.
>
> IMO there is no way for debian-edu-config to fix this LTSP chroot 
> installation failure as it seems to be related to d-i components.
>
> Please consider to check and test the provided patch.

I can test the patch to make sure it doesn't break anything, but I was
not able to reproduce the issue with debian-installer daily images using
libvirt+qemu+kvm; it would be surprising if virtualbox were different.

I suspect there may be something different in the debian-edu installer
images. There is also the very real possibility that something changed
in the debian-installer mounting of the cdrom again.

The patch effectively reverts the fix that corrected a nearly identical
problem earlier; I worry the patch would fix one problem only to
reintroduce a different variation of the same problem:

  https://bugs.debian.org/758500


In any case, ltsp-client-builder needs to be more resilient to a variety
of media mount locations and states... thus bumping the severity.


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Severity set to 'serious' from 'important' Request was from Vagrant Cascadian <vagrant@debian.org> to 780591-submit@bugs.debian.org. (Fri, 20 Mar 2015 18:39:04 GMT) (full text, mbox, link).


Added tag(s) patch. Request was from Vagrant Cascadian <vagrant@debian.org> to 780591-submit@bugs.debian.org. (Fri, 20 Mar 2015 18:39:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#780591; Package ltsp-client-builder. (Mon, 23 Mar 2015 19:03:05 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Mon, 23 Mar 2015 19:03:05 GMT) (full text, mbox, link).


Message #87 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Wolfgang Schweer <wschweer@arcor.de>, 780591@bugs.debian.org
Cc: Petter Reinholdtsen <pere@hungry.com>
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Mon, 23 Mar 2015 12:02:05 -0700
[Message part 1 (text/plain, inline)]
Control: tag -1 -patch
Control: tag -1 moreinfo

On 2015-03-20, Wolfgang Schweer wrote:
> Control: reassign -1 ltsp-client-builder-udeb
>
> On Wed, Mar 18, 2015 at 07:48:05PM +0100, Wolfgang Schweer wrote:
>> On Tue, Mar 17, 2015 at 10:00:08PM +0100, Wolfgang Schweer wrote:
>> > With this (trivial) modification installation succeeded.
>> > 
>> > --- a/postinst	2015-03-06 10:00:00.000000000 +0100
>> > +++ ltsp-client-builder.postinst	2015-03-17 21:39:38.824682599 +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 /dev/cdrom /target/media/cdrom
>> >      log "mounting /media/cdrom"
>> >  fi

This patch breaks USB stick installs.


> IMO there is no way for debian-edu-config to fix this LTSP chroot 
> installation failure as it seems to be related to d-i components.

I can't reproduce this with debian-installer... debian-edu images have
the ordering of various components rearranged; in a standard
debian-installer install grub-install is run after ltsp-client-builder,
and in debian-edu the order is reversed. I'm guessing something in the
reordering is causing you grief...

I'll keep digging into it, but it really needs a simple test case to
reproduce the problem.


live well,
  vagrant


[signature.asc (application/pgp-signature, inline)]

Removed tag(s) patch. Request was from Vagrant Cascadian <vagrant@debian.org> to 780591-submit@bugs.debian.org. (Mon, 23 Mar 2015 19:03:05 GMT) (full text, mbox, link).


Added tag(s) moreinfo. Request was from Vagrant Cascadian <vagrant@debian.org> to 780591-submit@bugs.debian.org. (Mon, 23 Mar 2015 19:03:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#780591; Package ltsp-client-builder. (Tue, 24 Mar 2015 15:18:04 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Tue, 24 Mar 2015 15:18:04 GMT) (full text, mbox, link).


Message #96 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Vagrant Cascadian <vagrant@debian.org>
Cc: 780591@bugs.debian.org, Petter Reinholdtsen <pere@hungry.com>
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Tue, 24 Mar 2015 16:15:03 +0100
[Message part 1 (text/plain, inline)]
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:
> >> > With this (trivial) modification installation succeeded.
> >> > 
> >> > --- a/postinst	2015-03-06 10:00:00.000000000 +0100
> >> > +++ ltsp-client-builder.postinst	2015-03-17 21:39:38.824682599 +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 /dev/cdrom /target/media/cdrom
> >> >      log "mounting /media/cdrom"
> >> >  fi
> 
> This patch breaks USB stick installs.
 
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
 
@@ -244,3 +244,4 @@
 #DEBHELPER#
 
 exit 0
+

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.

Wolfgang

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#780591; Package ltsp-client-builder. (Sun, 29 Mar 2015 23:09:05 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Sun, 29 Mar 2015 23:09:05 GMT) (full text, mbox, link).


Message #101 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Wolfgang Schweer <wschweer@arcor.de>
Cc: 780591@bugs.debian.org, Petter Reinholdtsen <pere@hungry.com>
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Sun, 29 Mar 2015 16:07:34 -0700
[Message part 1 (text/plain, inline)]
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...


I speculated that debian-edu installs already had ltsp-server-standalone
installed and would result in a different state when ltsp-client-builder
invokes apt-install ltsp-server-standalone... but that didn't result in
any change with debian-installer rc4 (20150324).


Earlier in ltsp-client-builder.postinst it checks for /cdrom/.disk/info,
and that's clearly working for fine with debian-edu installs.


One obvious difference I've seen so far is debian-edu runs
ltsp-client-builder after grub-installer.


Do debian-edu installs modify /etc/fstab in a way that would result in
/media/cdrom not being mountable?


What other differences are there in a debian-edu install?


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#780591; Package ltsp-client-builder. (Mon, 30 Mar 2015 00:39:12 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Mon, 30 Mar 2015 00:39:12 GMT) (full text, mbox, link).


Message #106 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Wolfgang Schweer <wschweer@arcor.de>
Cc: 780591@bugs.debian.org, Petter Reinholdtsen <pere@hungry.com>, 540990@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Sun, 29 Mar 2015 17:34:40 -0700
[Message part 1 (text/plain, inline)]
Control: tag -1 patch

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:

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


As an added bonus, I think it will also fix:

  https://bugs.debian.org/540990


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Added tag(s) patch. Request was from Vagrant Cascadian <vagrant@debian.org> to 780591-submit@bugs.debian.org. (Mon, 30 Mar 2015 00:39:12 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#780591; Package ltsp-client-builder. (Mon, 30 Mar 2015 08:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Mon, 30 Mar 2015 08:09:07 GMT) (full text, mbox, link).


Message #113 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Vagrant Cascadian <vagrant@debian.org>
Cc: 780591@bugs.debian.org, Petter Reinholdtsen <pere@hungry.com>, 540990@bugs.debian.org
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Mon, 30 Mar 2015 10:06:30 +0200
[Message part 1 (text/plain, inline)]
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 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#780591; Package ltsp-client-builder. (Mon, 30 Mar 2015 08:45:10 GMT) (full text, mbox, link).


Acknowledgement sent to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Mon, 30 Mar 2015 08:45:10 GMT) (full text, mbox, link).


Message #118 received at 780591@bugs.debian.org (full text, mbox, reply):

From: Wolfgang Schweer <wschweer@arcor.de>
To: Vagrant Cascadian <vagrant@debian.org>
Cc: 780591@bugs.debian.org, Petter Reinholdtsen <pere@hungry.com>
Subject: Re: Bug#780591: ltsp-client-builder fails when installing Debian Edu combined server in virtualbox environment
Date: Mon, 30 Mar 2015 10:40:21 +0200
[Message part 1 (text/plain, inline)]
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 (application/pgp-signature, inline)]

Reply sent to Vagrant Cascadian <vagrant@debian.org>:
You have taken responsibility. (Wed, 01 Apr 2015 00:06:09 GMT) (full text, mbox, link).


Notification sent to Wolfgang Schweer <wschweer@arcor.de>:
Bug acknowledged by developer. (Wed, 01 Apr 2015 00:06:09 GMT) (full text, mbox, link).


Message #123 received at 780591-close@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: 780591-close@bugs.debian.org
Subject: Bug#780591: fixed in ltsp 5.5.4-4
Date: Wed, 01 Apr 2015 00:03:45 +0000
Source: ltsp
Source-Version: 5.5.4-4

We believe that the bug you reported is fixed in the latest version of
ltsp, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 780591@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@debian.org> (supplier of updated ltsp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 31 Mar 2015 16:54:20 -0700
Source: ltsp
Binary: ltsp-server ltsp-server-standalone ltsp-client-core ltsp-client ltsp-client-builder
Architecture: source all
Version: 5.5.4-4
Distribution: unstable
Urgency: medium
Maintainer: LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>
Changed-By: Vagrant Cascadian <vagrant@debian.org>
Description:
 ltsp-client - complete LTSP client environment
 ltsp-client-builder - build an LTSP environment in the installer target (udeb)
 ltsp-client-core - basic LTSP client environment
 ltsp-server - basic LTSP server environment
 ltsp-server-standalone - complete LTSP server environment
Closes: 540990 780591
Changes:
 ltsp (5.5.4-4) unstable; urgency=medium
 .
   * ltsp-client-builder: Fix mounting of "cdrom" during by using the
     device of already mounted "cdrom" images. Tested with both CD and USB
     installs, and systems with multiple CD drives.  Thanks to Wolfgang
     Schweer (Closes: #540990, #780591).
Checksums-Sha1:
 6f86e37588a638514be21d284454294749d2519f 2285 ltsp_5.5.4-4.dsc
 327eb55eddc475eedbee2eb966809f3e9fcfaf9c 77580 ltsp_5.5.4-4.debian.tar.xz
 81059633222d1dac4b336cf2df22a67e59b56f2e 266276 ltsp-server_5.5.4-4_all.deb
 6a5867f8cfcfb9e573ea69f3776d685e26811933 146286 ltsp-server-standalone_5.5.4-4_all.deb
 7f14fa8351c9a8adcb4b005a32c619de14f29e46 11296 ltsp-client-builder_5.5.4-4_all.udeb
Checksums-Sha256:
 dc9a7fdd4856c1a1839ec19ebc9960962a360bee7cc1ea0a5caf6990e283af4b 2285 ltsp_5.5.4-4.dsc
 f91a4de7356e26a32d63f8cb2a8255b558f823eddcc553ed4fe27e0a1e138433 77580 ltsp_5.5.4-4.debian.tar.xz
 49408b724439d3dbb1438bf802697936ea57019730849dda5cc6ad7434c4782a 266276 ltsp-server_5.5.4-4_all.deb
 56ceb5e7517a0de0ac6b1148d8c28a51d6fc5e2fba9b3ccc5ba63e18edacba4f 146286 ltsp-server-standalone_5.5.4-4_all.deb
 dc3bd44b9d0cbb70ff1da01c01efc8e5a3dcd28223f80140f7dc923b704d9703 11296 ltsp-client-builder_5.5.4-4_all.udeb
Files:
 8e6e13217a04c09bf8952bfc7c058d4a 2285 misc extra ltsp_5.5.4-4.dsc
 993fca5fd90e1f26dd0d4316e447e107 77580 misc extra ltsp_5.5.4-4.debian.tar.xz
 1c3d75eda0ce5dbf7e652027736aae0f 266276 misc extra ltsp-server_5.5.4-4_all.deb
 eb5c092196713cff2189880c1782a748 146286 misc extra ltsp-server-standalone_5.5.4-4_all.deb
 40a88058697480a4b92356bb6545192b 11296 debian-installer extra ltsp-client-builder_5.5.4-4_all.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJVGzR4AAoJELeLgtSBS5G2L2AP/3Vk7rE//PcnIxSkAJk3wKzh
jIXVV/FtROMurLi8ZOmJpVl53TyaVn6Xb/lY9AL8+UbCSINz8WE9kyJTuKWLeww/
UiZ/0VWV3dJHai/uH7IfQzvshK0OBEtxrkv8FlYC4FEUNR2PgulLs87p/wHwkYs3
0vMQUA4nZBz2AnxsYU7hGXuz5UUJoRCkxXNtLuZCu6rO5uFoXhmPkVeet8L9ZYe8
ohBORFkwwxoHu1ygtHYlQ0T9X61fF3loDM40VWBGyxC3vV+MlzapJWzba1vtrWYs
s3c6Zb3RFV4pRLRHAPkh9idd47Au4AcqnWCjTitOFSoLHHihMOfDj0IAmmx0Dwwk
E3SyutZHNjUSSV0KBXm8e0RXSEbHQco9XJAsRiccfW6N82s0g54duLPRi6KRURxL
o0M1HKQxlLkbkWSxChiMlLIr/P/ltr+/WP3JD9icKsDPhGyhLl4Dwx9+DkpL2C2W
r3Pe9xB7NIpvf81MS9JlbecP2PfH3b7SvjX4lISbxQBrpS5CZ7VsB3Yq4Zt0Pkn9
3bUifM7QjyPhjgM7pfVZchsMh9EhmlfOzEoP5p9ggm80BbfXOdH1PQwnwBk7TH1U
2q5qRSuuokjbSW6jnsKE3s3fIiG6ewNzpBmcWu4oQVuZ8YIGRuYTdhfclPTCANdu
mYht8DQFIpaOCV9KBgJ3
=nt5U
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 04 May 2015 07:27:49 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 13:09:05 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.