Debian Bug report logs - #222277
lvm2: No lvmcreate_initrd script

version graph

Package: lvm2; Maintainer for lvm2 is Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>; Source for lvm2 is src:lvm2.

Reported by: Birzan George Cristian <gcbirzan@wolfheart.ro>

Date: Thu, 27 Nov 2003 04:33:03 UTC

Severity: wishlist

Found in versions 2.00.07-1, 2.00.06-1

Done: Patrick Caulfield <patrick@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, Andres Salomon <dilinger@voxel.net>:
Bug#222277; Package lvm2. Full text and rfc822 format available.

Acknowledgement sent to Birzan George Cristian <gcbirzan@wolfheart.ro>:
New Bug report received and forwarded. Copy sent to Andres Salomon <dilinger@voxel.net>. Full text and rfc822 format available.

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

From: Birzan George Cristian <gcbirzan@wolfheart.ro>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: lvm2: No lvmcreate_initrd script
Date: Thu, 27 Nov 2003 06:26:19 +0200
Package: lvm2
Version: 2.00.07-1
Severity: wishlist

The LVM2 package doesn't include a lvmcreate_initrd as does the LVM1
package, which means one has to either build one by hand, or modify the
one generated for LVM1. If time permits, I'll write a script (as opposed
to a C program, which is what lvm1 provides) that does it for LVM2, if
there isn't one available out there. (I couldn't find it on Google, but
I didn't go past page 3-4 for my queries.)

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux heimdall 2.6.0-test11 #1 Thu Nov 27 03:17:51 EET 2003 i686
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15

Versions of packages lvm2 depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libdevmapper1.00            2:1.00.05-3  The Linux Kernel Device Mapper use
ii  lvm-common                  1.5.9.3      The Logical Volume Manager for Lin

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#222277; Package lvm2. Full text and rfc822 format available.

Acknowledgement sent to Andres Salomon <dilinger@voxel.net>:
Extra info received and forwarded to list. Full text and rfc822 format available.

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

From: Andres Salomon <dilinger@voxel.net>
To: 222277@bugs.debian.org
Subject: [Fwd: LVM2 Mkinitrd]
Date: Mon, 09 Feb 2004 12:10:17 -0500
[Message part 1 (text/plain, inline)]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

TODO..
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAJ77578o9R9NraMQRAqY2AKCZDOSFz1Uf2tobz0mqjqEBW9+wAwCeIJMk
fPTKDXz64GgIap5n43Y+0B8=
=AppB
-----END PGP SIGNATURE-----
[LVM2 Mkinitrd (message/rfc822, inline)]
From: Dan Weber <dan@mirrorlynx.com>
To: dilinger@voxel.net
Subject: LVM2 Mkinitrd
Date: Tue, 23 Dec 2003 17:35:45 -0500
[Message part 3 (text/plain, inline)]
Attached are the scripts required for making an initrd.  It should be used with
mkinitrd.  I suggest putting them in a package lvm2-initrd or something of the
such so you can seperate mkinitrd out as a dependency for only lvm2-initrd.
the lvm-linuxrc should be renamed to linuxrc and placed in /usr/share/lvm2 and
the lvm-mkinitrd should renamed to lvm and placed in /etc/mkinitrd/scripts.
Also you need to make a copy of lvm-mkinitrd into
/usr/share/initrd-tools/scripts but named as lvm.mkinitrd.

Dan
[lvm-mkinitrd (text/plain, attachment)]
[lvm-linuxrc (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Andres Salomon <dilinger@voxel.net>:
Bug#222277; Package lvm2. Full text and rfc822 format available.

Acknowledgement sent to Jeff Layton <jtlayton@poochiereds.net>:
Extra info received and forwarded to list. Copy sent to Andres Salomon <dilinger@voxel.net>. Full text and rfc822 format available.

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

From: Jeff Layton <jtlayton@poochiereds.net>
To: Debian Bug Tracking System <222277@bugs.debian.org>
Subject: lvm2: an alternate script
Date: Tue, 10 Feb 2004 16:31:43 -0500
[Message part 1 (text/plain, inline)]
Package: lvm2
Version: 2.00.06-1
Severity: normal
Followup-For: Bug #222277

I've attached an alternate lvm2create_initrd script. 

This is a modified version of the old lvmcreate_initrd script that was bundled
with LVM1. This version modifies it to work with LVM2 (in most cases).

I've successfully used this on a Debian sarge/sid install with a 2.6
kernel.

Here are some other requirements and tips for using it:

1) this script uses busybox on the initrd image, hence busybox needs to be
installed.

2) Make sure /etc/lvm/lvm.conf is set up correctly before running this.  In
particular, if you're using LVM on RAID, make sure that you have a
filter that excludes the RAID component devices.

3) I statically compile in device mapper and RAID drivers. Having these as
modules should work, but that configuration is untested. I recommend compiling
them in, if possible. Also, this script does not support modules on 2.4 (and
below) kernels. You'll need to hand modify the image (or hack the script) if
you wish to use an older kernel.

4) devfs support is untested as well

5) The generated initrd image supports an 'lvmrescue' mode as well. If you add
the parameter 'lvmrescue' on the kernel command line, it will run a shell at
the end of the linuxrc script. This can be helpful when trying to fix a
corrupt root volume or root LVM2 volume group.

6) No userspace md tools are installed, so if you're using LVM on RAID, then
you'll probably want to mark your RAID partitions as type 'fd' so that the
kernel will start them automagically (or hand-modify the image).

Thanks
--------
Heinz Mauelshagen for the original script

Christophe Saout: for his hand-rolled initrd image, which I used as a
                  template. Also used most of his linuxrc script.

Patches are very welcome!

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux salusa 2.6.1b #1 Mon Jan 26 11:34:57 EST 2004 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages lvm2 depends on:
ii  libc6                      2.3.2.ds1-11  GNU C Library: Shared libraries an
ii  libdevmapper1.00           2:1.00.07-3.1 The Linux Kernel Device Mapper use
ii  lvm-common                 1.5.11        The Logical Volume Manager for Lin

-- no debconf information

[/home/jtlayton/svn/lvm2create_initrd/lvm2create_initrd.sh (application/x-shellscript, attachment)]

Reply sent to Patrick Caulfield <patrick@debian.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Birzan George Cristian <gcbirzan@wolfheart.ro>:
Bug acknowledged by developer. Full text and rfc822 format available.

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

From: Patrick Caulfield <patrick@debian.org>
To: 222277-done@bugs.debian.org
Subject: Close
Date: Tue, 7 Dec 2004 11:54:36 +0000
This script was included in LVM2 2.0.25, sorry I forgot to close this bug with
that upload.
-- 

patrick



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 13:12:43 2014; Machine Name: beach.debian.org

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