Bug#606313: debian-edu-install: LTSP installation fail when booting ISO as USB stick

2014-04-11 Thread Vagrant Cascadian
Control: tags 606313 pending

On Tue, Dec 28, 2010 at 12:22:42AM +0100, Petter Reinholdtsen wrote:
 As this bug make most sense to properly fix in the LTSP package,
 either by avoiding the --mount-cdrom in the udeb or some other fix, I
 reassign it there.

Fixed in bzr by removing --mount-cdrom from the default ltsp-build-client
options, as any remotely recent versions of debian-installer do not appear to
require it for CD installs, and it breaks USB installs to have it.

You may want to update the corresponding debian-edu code.

live well,
  vagrant


signature.asc
Description: Digital signature


Bug#606313: debian-edu-install: LTSP installation fail when booting ISO as USB stick

2010-12-27 Thread Petter Reinholdtsen
Based on feedback from Vagrant on IRC, I was able to get the LTSP
installation working also when installing from a isohybrid USB stick.

This patch did the trick.

--- /tmp/099-mount-cdrom.orig   2010-12-27 12:55:59.0 +0100
+++ /tmp/099-mount-cdrom2010-12-27 12:56:26.0 +0100
@@ -11,7 +11,11 @@
 ;;
 before-install)
 if [ $MOUNT_CDROM = true ]; then
-mount /media/cdrom
+if mount /media/cdrom ; then
+:
+else
+MOUNT_CDROM=false
+fi
 fi
 ;;
 finalization)

I tried first to just add '|| true' to the mount and umount calls, but
this caused LTSP to install properly but the grub step after it to
fail.  The reason was that the CD was umounted by LTSP, and apt were
unable to mount it again when grub needed to install more packages.
Given that LTSP should only umount what it mounted, I believe my patch
make more sense.

Not sure if we need to make changed LTSP packages to implement this
change in Squeeze, or if we can get away with providing our overrides.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#606313: debian-edu-install: LTSP installation fail when booting ISO as USB stick

2010-12-27 Thread Petter Reinholdtsen
[Petter Reinholdtsen]
 Not sure if we need to make changed LTSP packages to implement this
 change in Squeeze, or if we can get away with providing our
 overrides.

I tested to copy the file from Debian/ to Debian-custom/ and edited
the new file.  This worked just fine, and mean we can provide a
override for the cdrom mounting code in debian-edu-config if we do not
want to fix it for Squeeze in the ltsp package.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#606313: debian-edu-install: LTSP installation fail when booting ISO as USB stick

2010-12-27 Thread Petter Reinholdtsen
reassign 606313 ltsp-server
retitle 606313 ltsp-server: LTSP installation using udeb fail when booting ISO 
as USB stic (isohybrid)
found 606313 5.2.4-2
thanks

[Petter Reinholdtsen]
 I tested to copy the file from Debian/ to Debian-custom/ and edited
 the new file.  This worked just fine, and mean we can provide a
 override for the cdrom mounting code in debian-edu-config if we do
 not want to fix it for Squeeze in the ltsp package.

I've added a workaround to debian-edu-config in svn (replacement
099-mount-cdrom in Debian-custom/), and confirmed that this solved the
issue.

As this bug make most sense to properly fix in the LTSP package,
either by avoiding the --mount-cdrom in the udeb or some other fix, I
reassign it there.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#606313: debian-edu-install: LTSP installation fail when booting ISO as USB stick

2010-12-10 Thread Vagrant Cascadian
On Wed, Dec 08, 2010 at 11:31:42AM +0100, Petter Reinholdtsen wrote:
 Dec  8 10:07:06 in-target: mount: /dev/sdb1 already mounted or /media/cdrom0 
 busy
 Dec  8 10:07:06 in-target: mount: according to mtab, /dev/sdb1 is already 
 mounted on /media/cdrom0
 Dec  8 10:07:06 in-target: error: LTSP client installation ended abnormally
 Dec  8 10:07:06 ltsp-client-builder: ERROR: ltsp-build-client failed to run
 Dec  8 10:07:06 main-menu[494]: WARNING **: Configuring 'ltsp-client-builder' 
 failed with error code 1
 Dec  8 10:07:06 main-menu[494]: WARNING **: Menu item 'ltsp-client-builder' 
 failed.
 
 I guess this is because the LTSP code expect the ISO to be mounted as
 /dev/cdrom, while it is mounted as /dev/sdb1 instead.

all 099-mount-cdrom does is:

  mount /media/cdrom

so if the USB stick is not configured to be mounted as /media/cdrom, then it's
not going to work.

my guess is oded is probably right about it being the same bug (#540990) as the
multiple cdrom drive issue, maybe showing up as cdrom1 or some other device
altogether.

i've never been able to navigate the relevent debconf databases that we could
actually query the right information during install time, so it's pretty much
guesswork, and will break as soon as something *slightly* unusual is happening.

it wouldn't bee too difficult to configure it to fall back to attempting to
mount additional paths if the first failed, but then you need to coordinate
that with the mirrors used as well.

live well,
  vagrant



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#606313: debian-edu-install: LTSP installation fail when booting ISO as USB stick

2010-12-08 Thread Petter Reinholdtsen

Package:  debian-edu-install
Version:  1.519
Severity: important

I just tested installing the latest squeeze-test netinst image using a
USB stick (possible thanks to the new isohybrid support), and the
installation ran into a problem with setting up LTSP.  These are the
relevant log messages:

Dec  8 10:07:05 main-menu[494]: INFO: Menu item 'ltsp-client-builder' selected
Dec  8 10:07:05 ltsp-client-builder: ltsp-build-client options: --mirror 
file:///media/cdrom --security-mirror none --mount-cdrom 
--accept-unsigned-packages
Dec  8 10:07:05 ltsp-client-builder: Installing package ltsp-server-standalone 
in target
Dec  8 10:07:05 in-target: Leser pakkelister...
Dec  8 10:07:05 in-target: 
Dec  8 10:07:05 in-target: Skaper oversikt over avhengighetsforhold...
Dec  8 10:07:05 in-target: 
Dec  8 10:07:05 in-target: Leser tilstandsinformasjon...
Dec  8 10:07:05 in-target: 
Dec  8 10:07:05 in-target: ltsp-server-standalone er allerede nyeste versjon.
Dec  8 10:07:05 in-target: 0 oppgraderte, 0 nylig installerte, 0 å fjerne og 0 
ikke oppgradert.
Dec  8 10:07:06 in-target: Detected CD install, disabling APT repository 
checking.
Dec  8 10:07:06 in-target: deb cdrom:[Debian GNU/Linux 6.0+edu0~a0 _Squeeze_ - 
Unofficial Multi-architecture amd64/i386 NETINST #1 20101207-23:24]/ squeeze 
contrib local main non-free
Dec  8 10:07:06 in-target: deb http://ftp.skolelinux.org/skolelinux 
squeeze-test local
Dec  8 10:07:06 in-target: deb-src http://ftp.skolelinux.org/skolelinux 
squeeze-test local
Dec  8 10:07:06 in-target: warning: overriding kernel arthitecure to 686.
Dec  8 10:07:06 in-target: mount: /dev/sdb1 already mounted or /media/cdrom0 
busy
Dec  8 10:07:06 in-target: mount: according to mtab, /dev/sdb1 is already 
mounted on /media/cdrom0
Dec  8 10:07:06 in-target: error: LTSP client installation ended abnormally
Dec  8 10:07:06 ltsp-client-builder: ERROR: ltsp-build-client failed to run
Dec  8 10:07:06 main-menu[494]: WARNING **: Configuring 'ltsp-client-builder' 
failed with error code 1
Dec  8 10:07:06 main-menu[494]: WARNING **: Menu item 'ltsp-client-builder' 
failed.
Dec  8 10:25:44 main-menu[494]: INFO: Modifying debconf priority limit from 
'critical' to 'high'
Dec  8 10:25:44 debconf: Setting debconf/priority to high

I guess this is because the LTSP code expect the ISO to be mounted as
/dev/cdrom, while it is mounted as /dev/sdb1 instead.

Setting severity to important, as this only affect thin-client-server
profiles, but suspect it should be seen as release critical for Debian
Edu/Squeeze.

Happy hacking,
-- 
Petter Reinholdtsen



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org