Debian Bug report logs - #510287
cryptsetup: Booting on mixed systems misses call to vgchange

version graph

Package: cryptsetup; Maintainer for cryptsetup is Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>; Source for cryptsetup is src:cryptsetup.

Reported by: Olaf Mandel <olaf@mandel.name>

Date: Wed, 31 Dec 2008 03:30:01 UTC

Severity: important

Tags: lenny, patch

Found in version cryptsetup/2:1.0.6-7

Done: Jonas Meurer <jonas@freesources.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, Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>:
Bug#510287; Package cryptsetup. (Wed, 31 Dec 2008 03:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Olaf Mandel <olaf@mandel.name>:
New Bug report received and forwarded. Copy sent to Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>. (Wed, 31 Dec 2008 03:30:04 GMT) Full text and rfc822 format available.

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

From: Olaf Mandel <olaf@mandel.name>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: cryptsetup: Booting on mixed systems misses call to vgchange
Date: Tue, 30 Dec 2008 19:27:03 -0800
[Message part 1 (text/plain, inline)]
Package: cryptsetup
Version: 2:1.0.6-7
Severity: important
Tags: patch

Hello,

fixing bug 506536 (vgchange -> lvm vgchange) in 2:1.0.6-7 creates a
problem on mixed systems (i.e. lvm2 from etch and cryptsetup from
lenny). Basically, this is the same as 506536: the system doesn't boot
and one needs to use a rescue system to create a new initramfs image.

As it is not advisable to Depend on a specific version of lvm2 (lvm2 is
not really needed in all casses), and as Recommendations and Suggestions
don't enforce a version number, please keep the
debian/initramfs/cryptroot-script able to handle both calling
conventions, for the time being. If both executables are available, then
the script should default to the newer invokation method (lvm vgchange).

Best regards,
Olaf Mandel


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (990, 'stable'), (400, 'testing'), (90, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.26-1-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages cryptsetup depends on:
ii  dms 2:1.02.08-1                          The Linux Kernel Device
Mapper use
ii  lib 2.7-16                               GNU C Library: Shared libraries
ii  lib 2:1.02.27-4                          The Linux Kernel Device
Mapper use
ii  lib 1.14-4                               lib for parsing cmdline
parameters
ii  lib 1.39+1.40-WIP-2006.11.14+dfsg-2etch1 universally unique id library

cryptsetup recommends no packages.

-- no debconf information

-- 
Olaf Mandel   <olaf@mandel.name>   <http://www.olaf.mandel.name/>
PGP key:      1024D/33398848 2002-09-19
Fingerprint:  0E33 BEA6 1A71 9C5E 62BD  FC0E 99A7 D2C6 3339 8848
[patch (text/plain, inline)]
--- cryptsetup-1.0.6/debian/initramfs/cryptroot-script	2008-12-30 18:48:42.000000000 -0800
+++ cryptsetup-1.0.6.local/debian/initramfs/cryptroot-script	2008-12-30 19:01:39.000000000 -0800
@@ -124,7 +124,7 @@
 	vg="${1#/dev/mapper/}"
 
 	# Sanity checks
-	if [ ! -x /sbin/lvm ] || [ "$vg" = "$1" ]; then
+	if [ ! -x /sbin/lvm -a ! -x /sbin/vgchange ] || [ "$vg" = "$1" ]; then
 		return 1
 	fi
 
@@ -139,7 +139,11 @@
 	# Reduce padded --'s to -'s
 	vg=$(echo ${vg} | sed -e 's#--#-#g')
 
-	lvm vgchange -ay ${vg}
+	if [ -x /sbin/lvm ]; then
+		lvm vgchange -ay ${vg}
+	else
+		vgchange -ay ${vg}
+	fi
 	return $?
 }
 
[signature.asc (application/pgp-signature, attachment)]

Tags added: lenny Request was from Jonas Meurer <mejo@debian.org> to control@bugs.debian.org. (Thu, 19 Feb 2009 01:09:04 GMT) Full text and rfc822 format available.

Tags removed: lenny Request was from kurt@roeckx.be (Kurt Roeckx) to control@bugs.debian.org. (Sat, 21 Feb 2009 15:42:17 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>:
Bug#510287; Package cryptsetup. (Sat, 21 Feb 2009 19:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonas Meurer <jonas@freesources.org>:
Extra info received and forwarded to list. Copy sent to Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>. (Sat, 21 Feb 2009 19:30:02 GMT) Full text and rfc822 format available.

Message #14 received at 510287@bugs.debian.org (full text, mbox):

From: Jonas Meurer <jonas@freesources.org>
To: 510287@bugs.debian.org
Cc: Kurt Roeckx <kurt@roeckx.be>, Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>
Subject: Re: [pkg-cryptsetup-devel] Processed: tagging 510287
Date: Sat, 21 Feb 2009 20:28:12 +0100
On 21/02/2009 Debian Bug Tracking System wrote:
> Processing commands for control@bugs.debian.org:
> 
> > # I see no reason for a lenny tag
> > tags 510287 - lenny
> Bug#510287: cryptsetup: Booting on mixed systems misses call to vgchange
> Tags were: lenny patch
> Tags removed: lenny

The reason for tagging this as lenny was simply, that direct upgrades
from releases older than lenny (i.e. etch) aren't supported in squeeze
anyway, so it doesn't make sense any more, to fix this bug in unstable.

greetings,
 jonas




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>:
Bug#510287; Package cryptsetup. (Sat, 21 Feb 2009 20:48:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
Extra info received and forwarded to list. Copy sent to Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>. (Sat, 21 Feb 2009 20:48:06 GMT) Full text and rfc822 format available.

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

From: Kurt Roeckx <kurt@roeckx.be>
To: 510287@bugs.debian.org
Subject: Re: [pkg-cryptsetup-devel] Processed: tagging 510287
Date: Sat, 21 Feb 2009 21:45:31 +0100
tags 510287 + lenny
thanks

On Sat, Feb 21, 2009 at 08:28:12PM +0100, Jonas Meurer wrote:
> On 21/02/2009 Debian Bug Tracking System wrote:
> > Processing commands for control@bugs.debian.org:
> > 
> > > # I see no reason for a lenny tag
> > > tags 510287 - lenny
> > Bug#510287: cryptsetup: Booting on mixed systems misses call to vgchange
> > Tags were: lenny patch
> > Tags removed: lenny
> 
> The reason for tagging this as lenny was simply, that direct upgrades
> from releases older than lenny (i.e. etch) aren't supported in squeeze
> anyway, so it doesn't make sense any more, to fix this bug in unstable.

Ok, this makes sense, so setting the tag again.


Kurt





Tags added: lenny Request was from Kurt Roeckx <kurt@roeckx.be> to control@bugs.debian.org. (Sat, 21 Feb 2009 20:48:07 GMT) Full text and rfc822 format available.

Reply sent to Jonas Meurer <jonas@freesources.org>:
You have taken responsibility. (Thu, 04 Nov 2010 14:27:03 GMT) Full text and rfc822 format available.

Notification sent to Olaf Mandel <olaf@mandel.name>:
Bug acknowledged by developer. (Thu, 04 Nov 2010 14:27:03 GMT) Full text and rfc822 format available.

Message #26 received at 510287-done@bugs.debian.org (full text, mbox):

From: Jonas Meurer <jonas@freesources.org>
To: 510287-done@bugs.debian.org
Subject: fixed in subsequent releases
Date: Thu, 4 Nov 2010 15:24:40 +0100
[Message part 1 (text/plain, inline)]
this bug has been fixed long ago, and only affects direct upgrades from
etch to squeeze, which aren't supported anyway.

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

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 03 Dec 2010 07:36:21 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 21:37:08 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.