Debian Bug report logs - #540990
ltsp-client-builder failed on a system with two optical drives.

version graph

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

Reported by: Oded Naveh <skilinux@gmail.com>

Date: Tue, 11 Aug 2009 07:24:02 UTC

Severity: normal

Tags: 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/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#540990; Package ltsp-client-builder. (Tue, 11 Aug 2009 07:24:05 GMT) (full text, mbox, link).


Acknowledgement sent to Oded Naveh <skilinux@gmail.com>:
New Bug report received and forwarded. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Tue, 11 Aug 2009 07:24:05 GMT) (full text, mbox, link).


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

From: Oded Naveh <skilinux@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ltsp-client-builder failed on a system with two optical drives.
Date: Tue, 11 Aug 2009 10:19:51 +0300
Package: ltsp-client-builder
Severity: normal


Installing from:
Debian GNU/Linux 5.0r0+edu0~a0 _Lenny_ - Unofficial i386 CD700 Binary-1 20090316-20:49 (with ltsp-client-builder 5.1.10-2)
on a system with two optical drives failed at 'ltsp-client-builder' from secondary master, succeeded from secondary slave.

-- The failing syslog says:
Mar 16 12:42:10 main-menu[1376]: INFO: Menu item 'ltsp-client-builder' selected
Mar 16 12:42:10 ltsp-client-builder: ltsp-build-client options: --mirror
file:///cdrom --security-mirror none --mount-cdrom Mar 16 12:42:13 in-target:
Reading package lists...
Mar 16 12:42:13 in-target: 
Mar 16 12:42:13 in-target: Building dependency tree...
Mar 16 12:42:14 in-target: 
Mar 16 12:42:14 in-target: Reading state information...
Mar 16 12:42:14 in-target: 
Mar 16 12:42:16 in-target: ltsp-server-standalone is already the newest
version.
Mar 16 12:42:16 in-target: 0 ????????, 0 ??????? ?????, 0 ????? ?-0 ?? ???????.
Mar 16 12:42:16 kernel: [18984.015713] ISO 9660 Extensions: Microsoft Joliet
Level 3 Mar 16 12:42:16 kernel: [18984.176248] ISO 9660 Extensions: RRIP_1991A
Mar 16 12:42:17 load-install-cd: umount: cannot umount /target/cdrom/: Invalid
argument Mar 16 12:42:17 kernel: [18984.856022] ISO 9660 Extensions: Microsoft
Joliet Level 3 Mar 16 12:42:17 kernel: [18985.036084] ISO 9660 Extensions:
RRIP_1991A Mar 16 12:42:17 ltsp-client-builder: Passing keymap hebrew on to
LTSP Mar 16 12:42:25 in-target: Detected CD install, disabling APT repository
checking.
Mar 16 12:42:28 in-target: mount: /dev/hdc already mounted or /media/cdrom0
busy Mar 16 12:42:28 in-target: error: LTSP client installation ended
abnormally Mar 16 12:42:28 main-menu[1376]: (process:20023): /bin/debconf-get: 
Mar 16 12:42:28 main-menu[1376]: (process:20023): return: 
Mar 16 12:42:28 main-menu[1376]: (process:20023): line 4: 
Mar 16 12:42:28 main-menu[1376]: (process:20023): Illegal number: d-i Mar 16
12:42:28 main-menu[1376]: (process:20023): 
Mar 16 12:42:28 main-menu[1376]: WARNING **: Configuring 'ltsp-client-builder'
failed with error code 1 Mar 16 12:42:28 main-menu[1376]: INFO: Priority
changed externally, setting main-menu default to 'medium' (http) Mar 16
12:42:28 main-menu[1376]: WARNING **: Menu item 'ltsp-client-builder' failed.


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#540990; Package ltsp-client-builder. (Mon, 19 Oct 2009 01:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@freegeek.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Mon, 19 Oct 2009 01:39:03 GMT) (full text, mbox, link).


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

From: Vagrant Cascadian <vagrant@freegeek.org>
To: Oded Naveh <skilinux@gmail.com>, 540990@bugs.debian.org
Subject: Re: Bug#540990: ltsp-client-builder failed on a system with two optical drives.
Date: Sun, 18 Oct 2009 18:28:00 -0700
On Tue, Aug 11, 2009 at 10:19:51AM +0300, Oded Naveh wrote:
> Installing from:
> Debian GNU/Linux 5.0r0+edu0~a0 _Lenny_ - Unofficial i386 CD700 Binary-1 20090316-20:49 (with ltsp-client-builder 5.1.10-2)
> on a system with two optical drives failed at 'ltsp-client-builder' from secondary master, succeeded from secondary slave.
> 
> -- The failing syslog says:
> Mar 16 12:42:10 main-menu[1376]: INFO: Menu item 'ltsp-client-builder' selected
> Mar 16 12:42:10 ltsp-client-builder: ltsp-build-client options: --mirror
> file:///cdrom --security-mirror none --mount-cdrom Mar 16 12:42:13 in-target:
...snip...
> Mar 16 12:42:16 in-target: 0 ????????, 0 ??????? ?????, 0 ????? ?-0 ?? ???????.
> Mar 16 12:42:16 kernel: [18984.015713] ISO 9660 Extensions: Microsoft Joliet
> Level 3 Mar 16 12:42:16 kernel: [18984.176248] ISO 9660 Extensions: RRIP_1991A
> Mar 16 12:42:17 load-install-cd: umount: cannot umount /target/cdrom/: Invalid
> argument Mar 16 12:42:17 kernel: [18984.856022] ISO 9660 Extensions: Microsoft
> Joliet Level 3 Mar 16 12:42:17 kernel: [18985.036084] ISO 9660 Extensions:
> RRIP_1991A Mar 16 12:42:17 ltsp-client-builder: Passing keymap hebrew on to
> LTSP Mar 16 12:42:25 in-target: Detected CD install, disabling APT repository
> checking.
> Mar 16 12:42:28 in-target: mount: /dev/hdc already mounted or /media/cdrom0
> busy Mar 16 12:42:28 in-target: error: LTSP client installation ended

i don't currently have a machine to test this, if you still have one handy,
could you check a few things?

the LTSP plugin that handles the CD mounting is rather stupid, assuming that
/cdrom is the only location for a valid CD-ROM. 

what links are present? /media/cdrom, /media/cdrom0, /media/cdrom1 ? are they
mounted in /target/media/ ? is there a symlink from /target/cdrom and/or
/target/cdrom0 ? 

we could try and look at a few more locations to make make the code
incrementally smarter, but this will of course fail if debian-installer changes
the mount location(s).

ideally, we could look into the debian-installer's debconf db and ask a few
questions about the proper location of the install media, if we knew which
questions to even ask. last time i looked, it was a confounding maze of
questions; perhaps it has improved more recently.

live well,
  vagrant




Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#540990; Package ltsp-client-builder. (Fri, 30 Oct 2009 11:24:06 GMT) (full text, mbox, link).


Acknowledgement sent to Oded Naveh <skilinux@gmail.com>:
Extra info received and forwarded to list. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Fri, 30 Oct 2009 11:24:06 GMT) (full text, mbox, link).


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

From: Oded Naveh <skilinux@gmail.com>
To: 540990@bugs.debian.org
Subject: Re: Bug#540990: ltsp-client-builder failed on a system with two optical drives.
Date: Fri, 30 Oct 2009 08:40:41 +0200
On Monday 19 October 2009 03:28:00 Vagrant Cascadian wrote:

> i don't currently have a machine to test this, if you still have one handy,
> could you check a few things?

OK, let's see,

> what links are present? /media/cdrom, /media/cdrom0, /media/cdrom1 ? are
> they mounted in /target/media/ ? is there a symlink from /target/cdrom
> and/or /target/cdrom0 ?

ls -l /media/
	# nothing

ls -l /target/media/
 lrwxrwxrwx    1 root     root            6 Oct 29 17:59 cdrom -> cdrom0
 drwxr-xr-x    2 root     root         4096 Oct 29 17:59 cdrom0
 drwxr-xr-x    2 root     root         4096 Oct 29 17:59 cdrom1
 lrwxrwxrwx    1 root     root            7 Oct 29 17:59 floppy -> floppy0
 drwxr-xr-x    2 root     root         4096 Oct 29 17:59 floppy0

mount
 rootfs on / type rootfs (rw)
 none on /proc type proc (rw)
 none on /sys type sysfs (rw)
 tmpfs on /dev type tmpfs (rw,mode=755)
 none on /dev/pts type devpts (rw,gid=5,mode=620)
 /dev/hda1 on /target type ext3 (rw,errors=remount-ro,data=ordered)
 /dev/hda1 on /dev/.static/dev type ext3 (rw,errors=remount-ro,data=ordered)
 tmpfs on /target/dev type tmpfs (rw,mode=755)
 /dev/hdc on /cdrom type iso9660 (ro)
 /dev/hdb10 on /mnt/tmp type ext2 (rw,errors=continue)

chroot /target/ mount
 /dev/hda1 on / type ext3 (rw,errors=remount-ro)
 proc on /proc type proc (rw)
 sysfs on /sys type sysfs (rw)

Checked with 'Debian GNU/Linux 5.0.1+edu0 A _Lenny_ - Unofficial 
Multi-architecture amd64/i386/powerpc NETINST #1 20090802-20:53'

Hope this answers all.
All the best, live well yourself,
Odd.




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


Message #20 received at 540990@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 540990-submit@bugs.debian.org. (Mon, 30 Mar 2015 00:39:04 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#540990; Package ltsp-client-builder. (Mon, 30 Mar 2015 08:09: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>. (Mon, 30 Mar 2015 08:09:04 GMT) (full text, mbox, link).


Message #27 received at 540990@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)]

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


Notification sent to Oded Naveh <skilinux@gmail.com>:
Bug acknowledged by developer. (Wed, 01 Apr 2015 00:06:04 GMT) (full text, mbox, link).


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

From: Vagrant Cascadian <vagrant@debian.org>
To: 540990-close@bugs.debian.org
Subject: Bug#540990: 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 540990@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:43 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:01 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.