Bug#280571: marked as done (initrd-tools: Should initialize only LVM VG needed for root fs, not all)
Your message dated Tue, 25 Jan 2005 15:56:30 -0500
with message-id <20050125205630.GA1521@kitenet.net>
and subject line fixed in initrd-tools 0.1.76
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; 10 Nov 2004 10:09:28 +0000
>From glove@grigri.org Wed Nov 10 02:09:28 2004
Return-path: <glove@grigri.org>
Received: from b1.ovh.net (mail13.ha.ovh.net) [213.186.33.51]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1CRpPs-00041Q-00; Wed, 10 Nov 2004 02:09:28 -0800
Received: (qmail 24929 invoked by uid 503); 10 Nov 2004 10:02:36 -0000
Received: from 37.56.3.213.cust.bluewin.ch (HELO localhost) (213.3.56.37)
by ns0.ovh.net with SMTP; 10 Nov 2004 10:02:36 -0000
Received: from glove by localhost with local (Exim 3.36 #1 (Debian))
id 1CRpPo-0003fk-00; Wed, 10 Nov 2004 11:09:24 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Christian Grigis <glove@earthling.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: initrd-tools: Should initialize only LVM VG needed for root fs, not all
Reply-To: glove@grigri.org
X-Mailer: reportbug 3.2
Date: Wed, 10 Nov 2004 11:09:24 +0100
Message-Id: <E1CRpPo-0003fk-00@localhost>
Sender: Christian Grigis <glove@grigri.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(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_2004_03_25
X-Spam-Level:
Package: initrd-tools
Version: 0.1.74
Severity: important
Tags: patch
The '/script' script in the initrd image generated by mkinitrd contains
a line initializing the VG's when the root fs is on LVM, using the
vgchange command. The problem is that it initializes all VG's, which in
my case fails because one of them depends on a feature not initialized
at this point (my root fs is on a VG on top of a software raid1, and
I have another VG on top of a software raid0, and the raid0 module is
not loaded).
In any event, only the VG containing the root fs should be initialized
at this point, the other ones being taken care by the real system
initialization.
My suggested patch, which corrected the problem for me:
--- /usr/sbin/mkinitrd.orig 2004-11-10 10:47:02.000000000 +0100
+++ /usr/sbin/mkinitrd 2004-11-10 10:48:06.000000000 +0100
@@ -273,7 +273,7 @@
echo '[ -c /dev/lvm ] || mknod /dev/lvm c 109 0'
echo mount_tmpfs /etc
echo vgscan
- echo vgchange -a y
+ echo vgchange -a y ${vg}
echo umount -n /etc
} >&5
{
@@ -303,7 +303,7 @@
cat /var/lvm.conf > /etc/lvm/lvm.conf
fi
mount -nt devfs devfs /dev
- vgchange -a y
+ vgchange -a y ${vg}
umount /dev
umount -n /var
umount -n /etc/lvm
I have not tested the part for LVM1, only LVM2.
Best regards,
-Christian
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-mooch.2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Versions of packages initrd-tools depends on:
ii coreutils [fileutils] 5.2.1-2 The GNU core utilities
ii cpio 2.5-1.1 GNU cpio -- a program to manage ar
ii cramfsprogs 1.1-6 Tools for CramFs (Compressed ROM F
ii dash 0.5.1-3 The Debian Almquist Shell
ii fileutils 5.2.1-2 The GNU file management utilities
ii util-linux 2.12h-3 Miscellaneous system utilities
-- no debconf information
---------------------------------------
Received: (at 280571-done) by bugs.debian.org; 25 Jan 2005 20:54:24 +0000
>From joey@kitenet.net Tue Jan 25 12:54:24 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 1CtXhg-0003Fi-00; Tue, 25 Jan 2005 12:54:24 -0800
Received: from dragon.kitenet.net (unknown [66.168.94.144])
(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 04DCD18321;
Tue, 25 Jan 2005 20:54:24 +0000 (GMT)
Received: by dragon.kitenet.net (Postfix, from userid 1000)
id 6CA386E10B; Tue, 25 Jan 2005 15:56:30 -0500 (EST)
Date: Tue, 25 Jan 2005 15:56:30 -0500
From: Joey Hess <joeyh@debian.org>
To: 263216-done@bugs.debian.org, 271038-done@bugs.debian.org,
272139-done@bugs.debian.org, 276591-done@bugs.debian.org,
280571-done@bugs.debian.org
Subject: fixed in initrd-tools 0.1.76
Message-ID: <20050125205630.GA1521@kitenet.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw"
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: 280571-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=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
X-CrossAssassin-Score: 5
--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
These bugs were fixed in initrd-tools 0.1.76, which included the changes
made in version 0.1.75, which was uploaded only to experimental. The
changelog reads:
* Jeff Bailey
- Turn error into a warning on modprobe failure. Add extra text
explaining that sometimes this warning might be erroneous.
(Closes: #263216)
- new kernels don't list scsi modules in /proc/scsi (Closes: #271038)
Patch from Harald Dunkel <harald.dunkel@t-online.de>
* Simon Horman
- Create ida devices (Closes: Bug#276591)
* Martin Michlmayr
- Deal with block name manging in 2.6, thanks Colin Watson.
(Closes: #272139)
* Simon Horman
- Only activate the VG that contain the root device to avoid
tyring to activate VGs that include partitions on devices
whose device drivers are not yet available. (Closes: #280571)
--=20
see shy jo
--wac7ysb48OaltWcw
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFB9rJ9d8HHehbQuO8RArghAKC5Pw98UIMzSdnEBlnIZvaKbKwK3gCghaGl
MY6x0s0LpS2VPmni5Be8JJc=
=a9IQ
-----END PGP SIGNATURE-----
--wac7ysb48OaltWcw--
Reply to: