[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#295476: marked as done (add support for disabling auto-eject)



Your message dated Sun, 1 May 2005 18:55:28 -0400
with message-id <20050501225528.GA29243@kitenet.net>
and subject line FWD: Fixed in NMU of cdrom-detect 1.06
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 16 Feb 2005 01:52:36 +0000
>From matt@lackof.org Tue Feb 15 17:52:36 2005
Return-path: <matt@lackof.org>
Received: from colo.lackof.org [198.49.126.79] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D1EMm-0004nP-00; Tue, 15 Feb 2005 17:52:36 -0800
Received: from localhost (localhost [127.0.0.1])
	by colo.lackof.org (Postfix) with ESMTP id 667AC298034
	for <submit@bugs.debian.org>; Tue, 15 Feb 2005 18:52:49 -0700 (MST)
Received: from colo.lackof.org ([127.0.0.1])
	by localhost (colo.lackof.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 01506-02 for <submit@bugs.debian.org>;
	Tue, 15 Feb 2005 18:52:47 -0700 (MST)
Received: from cyrix.home.bogus (c-24-18-165-146.client.comcast.net [24.18.165.146])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "taggart.lackof.org", Issuer "ca.lackof.org" (verified OK))
	by colo.lackof.org (Postfix) with ESMTP id 2D23929802F
	for <submit@bugs.debian.org>; Tue, 15 Feb 2005 18:52:47 -0700 (MST)
Received: by cyrix.home.bogus (Postfix, from userid 22223)
	id 899A11AA8B8; Tue, 15 Feb 2005 17:52:02 -0800 (PST)
Received: from cyrix.home.bogus (localhost [127.0.0.1])
	by cyrix.home.bogus (Postfix) with ESMTP id 846E930536
	for <submit@bugs.debian.org>; Tue, 15 Feb 2005 17:52:02 -0800 (PST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Matt Taggart <taggart@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: add support for disabling auto-eject
X-Reportbug-Version: 3.7.1
Date: Tue, 15 Feb 2005 17:52:02 -0800
Sender: matt@lackof.org
Message-Id: <20050216015202.899A11AA8B8@cyrix.home.bogus>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at lackof.org
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: cdrom-detect
Version: svn 20050215
Severity: wishlist
Tags: patch

Many systems have optical media drives that do not support automatic
insertion of media. For example slim-line, slot loading, and caddy
style drives do not support this. This makes doing remote (or
automated) optical media installs on these systems not possible,
since you would need to be physically present to reinsert the install
media.

Below is a patch that adds a debconf variable to disable auto-eject and
an addition to the manual to explain it. In addition to the reason
mentioned above, there may be other reasons why you'd want to disable
auto-eject and this generic method would cover those as well.

Thanks,

Matt Taggart
taggart@debian.org


Index: packages/cdrom-detect/debian/cdrom-detect.templates
===================================================================
--- packages/cdrom-detect/debian/cdrom-detect.templates	(revision 25681)
+++ packages/cdrom-detect/debian/cdrom-detect.templates	(working copy)
@@ -13,6 +13,11 @@
 Type: text
 _Description: Detecting hardware to find CD-ROM drives
 
+Template: cdrom-detect/eject
+Type: boolean
+Default: true
+Description: Eject CD-ROM when finished.
+
 Template: cdrom-detect/manual_config
 Type: boolean
 Default: true
Index: packages/cdrom-detect/prebaseconfig
===================================================================
--- packages/cdrom-detect/prebaseconfig	(revision 25681)
+++ packages/cdrom-detect/prebaseconfig	(working copy)
@@ -1,4 +1,5 @@
 #! /bin/sh -e
+. /usr/share/debconf/confmodule
 
 log() {
 	logger -t cdrom-detect "$@"
@@ -12,7 +13,12 @@
 	if [ -n "$CDDEV" ]; then
 		log "Unmounting and ejecting '$CDDEV'"
 		umount /cdrom || true
-		/target/usr/bin/eject $CDDEV || true
+		if db_get cdrom-detect/eject && [ "$RET" = false ]; then
+			log "Not ejecting CD, per debconf setting."
+		else
+			/target/usr/bin/eject $CDDEV || true
+		fi
+			
 	else
 		log "Not ejecting CD, as nothing is mounted."
 	fi
Index: installer/doc/manual/en/boot-installer/parameters.xml
===================================================================
--- installer/doc/manual/en/boot-installer/parameters.xml	(revision 25681)
+++ installer/doc/manual/en/boot-installer/parameters.xml	(working copy)
@@ -262,6 +262,27 @@
 </varlistentry>
 
 <varlistentry>
+<term>cdrom-detect/eject</term>
+<listitem><para>
+
+By default, before rebooting, the &d-i; automatically ejects the
+optical media used during the install. In some cases this may be
+undesirable, for example if the optical drive cannot reinsert the
+media itself and the user is not there to do it manually. Many slot
+loading, slim-line, and caddy style drives cannot reload media
+automatically.
+
+</para><para>
+
+Set to <userinput>false</userinput> to disable automatic ejection, and
+be aware that you may need to ensure that the system does not
+automatically boot from the optical drive after the initial
+installation.
+
+</para></listitem>
+</varlistentry>
+
+<varlistentry>
 <term>hw-detect/start_pcmcia</term>
 <listitem><para>
 

---------------------------------------
Received: (at 295476-done) by bugs.debian.org; 1 May 2005 22:52:41 +0000
>From joey@kitenet.net Sun May 01 15:52:41 2005
Return-path: <joey@kitenet.net>
Received: from kitenet.net [64.62.161.42] (postfix)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DSNIn-0003Xd-00; Sun, 01 May 2005 15:52:41 -0700
Received: from dragon.kitenet.net (dpc6682244174.direcpc.com [66.82.244.174])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "Joey Hess", Issuer "Joey Hess" (verified OK))
	by kitenet.net (Postfix) with ESMTP id A56B317FBE;
	Sun,  1 May 2005 22:52:33 +0000 (GMT)
Received: by dragon.kitenet.net (Postfix, from userid 1000)
	id 3F6196E4D1; Sun,  1 May 2005 18:55:28 -0400 (EDT)
Date: Sun, 1 May 2005 18:55:28 -0400
From: Joey Hess <joeyh@debian.org>
To: 271976-done@bugs.debian.org, 295476-done@bugs.debian.org
Subject: FWD: Fixed in NMU of cdrom-detect 1.06
Message-ID: <20050501225528.GA29243@kitenet.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI"
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
Delivered-To: 295476-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,VALID_BTS_CONTROL 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2


--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

NAN


---- Forwarded message from Joey Hess <joeyh@debian.org> -----

=46rom: Joey Hess <joeyh@debian.org>
Date: Sun, 01 May 2005 17:32:03 -0400
To: control@bugs.debian.org
Cc: Joey Hess <joeyh@debian.org>,
	Debian Install System Team <debian-boot@lists.debian.org>
Subject: Fixed in NMU of cdrom-detect 1.06

tag 271976 + fixed
tag 295476 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload.  The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun,  1 May 2005 17:18:41 -0400
Source: cdrom-detect
Binary: cdrom-detect
Architecture: source all
Version: 1.06
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Joey Hess <joeyh@debian.org>
Description:=20
 cdrom-detect - Detect CDROM devices and mount the CD (udeb)
Closes: 271976 295476
Changes:=20
 cdrom-detect (1.06) unstable; urgency=3Dlow
 .
   * Stephen R. Marenka
     - m68k/atari/aranym workaround long cdrom filenames vs. find.
   * Frans Pop
     - Fail when the distribution (mirror/suite) cannot be determined.
       Currently the user only finds out in base-installation. Closes: #271=
976
     - Add option to not eject the installation CD before the reboot.
       Closes: #295476
   * Updated translations:
     - Arabic (ar.po) by Ossama M. Khayat
     - Bulgarian (bg.po) by Ognyan Kulev
     - Bosnian (bs.po) by Safir =C5=A0e=C4=87erovi=C4=87
     - Catalan (ca.po) by Guillem Jover
     - Czech (cs.po) by Miroslav Kure
     - Welsh (cy.po) by Dafydd Harries
     - Danish (da.po) by Claus Hindsgaul
     - German (de.po) by Dennis Stampfer
     - Greek, Modern (1453-) (el.po) by Greek Translation Team
     - Spanish (es.po) by Javier Fernandez-Sanguino Pe=C3=B1a
     - Finnish (fi.po) by Tapio Lehtonen
     - French (fr.po) by Christian Perrier
     - Gallegan (gl.po) by Jacobo Tarrio
     - Hebrew (he.po) by Lior Kaplan
     - Croatian (hr.po) by Krunoslav Gernhard
     - Italian (it.po) by Stefano Canepa
     - Japanese (ja.po) by Kenshi Muto
     - Korean (ko.po) by Changwoo Ryu
     - Lithuanian (lt.po) by K=C4=99stutis Bili=C5=ABnas
     - Dutch (nl.po) by Frans Pop
     - Polish (pl.po) by Bartosz Fenski
     - Portuguese (pt.po) by Miguel Figueiredo
     - Portuguese (Brazil) (pt_BR.po) by Andr=C3=A9 Lu=C3=ADs Lopes
     - Romanian (ro.po) by Eddy Petrisor
     - Russian (ru.po) by Yuri Kozlov
     - Slovak (sk.po) by Peter KLFMANiK Mann
     - Slovenian (sl.po) by Jure =C4=8Cuhalev
     - Albanian (sq.po) by Elian Myftiu
     - Swedish (sv.po) by Per Olofsson
     - Turkish (tr.po) by Recai Okta=C5=9F
     - Ukrainian (uk.po) by Eugeniy Meshcheryakov
     - Simplified Chinese (zh_CN.po) by Carlos Z.F. Liu
     - Traditional Chinese (zh_TW.po) by Tetralet
Files:=20
 942666276cad8aafea4a90531606887c 601 debian-installer optional cdrom-detec=
t_1.06.dsc
 b745c2054ed57e08196725ed8312cbce 70813 debian-installer optional cdrom-det=
ect_1.06.tar.gz
 286716a0f1946217bf68f879768aab17 52246 debian-installer optional cdrom-det=
ect_1.06_all.udeb
package-type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCdUfX2tp5zXiKP0wRAj3vAKCOxZqbaGpaCPJgQx21Qqp98qaUJgCgnB2b
yIy6BM9yDghF388V41olbJs=3D
=3D7Fdt
-----END PGP SIGNATURE-----


----- End forwarded message -----

--=20
see shy jo

--oyUTqETQ0mS9luUI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCdV5gd8HHehbQuO8RAmjrAKCO7OEs6prNd6eINzqritMAuOGODACgh8K5
lxc2akwuhc6hgsg/Joq4yS0=
=Y8OB
-----END PGP SIGNATURE-----

--oyUTqETQ0mS9luUI--



Reply to: