Bug#299103: marked as done (initrd-tools: mkinitrd tries to use devfs in 2.6 series kernel)
Your message dated Mon, 23 May 2005 03:38:47 -0700
with message-id <20050523103847.GC5285@mauritius.dodds.net>
and subject line Processed: Fixed in NMU of initrd-tools 0.1.80
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; 11 Mar 2005 20:07:34 +0000
>From jrojo@ehas.org Fri Mar 11 12:07:34 2005
Return-path: <jrojo@ehas.org>
Received: from (localhost.localdomain) [138.4.10.230]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1D9qQ1-0006E4-00; Fri, 11 Mar 2005 12:07:33 -0800
Received: from jrojo by localhost.localdomain with local (Exim 4.44)
id 1D9qPU-0001pp-WC
for submit@bugs.debian.org; Fri, 11 Mar 2005 21:07:01 +0100
Content-Type: multipart/mixed; boundary="===============0452105401=="
MIME-Version: 1.0
From: =?iso-8859-15?q?Jes=FAs_Rojo_Mart=EDnez?= <jrojo@ehas.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: initrd-tools: mkinitrd tries to use devfs in 2.6 series kernel
X-Mailer: reportbug 3.8
Date: Fri, 11 Mar 2005 21:07:00 +0100
X-Debbugs-Cc: jrojomartinez@mi.madritel.es
Message-Id: <E1D9qPU-0001pp-WC@localhost.localdomain>
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=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
This is a multi-part MIME message sent by reportbug.
--===============0452105401==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: initrd-tools
Version: 0.1.77
Severity: important
Tags: patch
I use RAID disks, including the root partition. Thus I used and initrd image to boot correctly.
However, when I use mkinitrd from the initrd-tools, it fails to boot because it doesn't find the root partition,
because mkinitrd uses devfs (and obviusly, I don't have devfs in the 2.6 kernel).
I send a patch that works fine for me (and it should work for everybody). The patch could be better, concretaly
the part that detects other RAID partitions:
- Don't copy /etc/mdadm/mdadm.conf, just generate it with some like:
echo "DEVICES partitions" > $INITRD/$MDADMCONF
mdadm -D --scan >> $INITRD/$MDADMCONF
- Moreover, with the information generated with those commands, read the devices needed for
"automatic" adition to the initrd (echoes them to >&4).
Thanks a lot and sorry about my poor english.
P.D.: The patch:
############################################
--- mkinitrd.orig 2005-03-11 18:00:47.000000000 +0100
+++ mkinitrd.new 2005-03-11 20:18:20.575264864 +0100
@@ -175,9 +175,17 @@
)"
printf '%s\n' $devices > getroot
- echo mdadm -A /devfs/md/$minor -R -u $uuid $devices \
- > md$minor-script
echo /sbin/mdadm >&6
+ echo /dev/md$minor >&4
+ echo mdadm -A /dev/md$minor -R -u $uuid $devices \
+ >> md$minor-script
+
+ echo -e "\n # If other RAID disks (and its components) are explicity added in /etc/mkinitrd/files,\n"\
+ "# It is posible to detect and initiate them all:" \
+ >> md$minor-script
+ echo mdadm -A --scan \
+ >> md$minor-script
+ echo /etc/mdadm/mdadm.conf >&4
}
getraid_raidtools() {
############################################
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=es_ES@euro, LC_CTYPE=es_ES@euro (charmap=ISO-8859-15) (ignored: LC_ALL set to es_ES@euro)
Versions of packages initrd-tools depends on:
ii coreutils [fileutils] 5.2.1-2 The GNU core utilities
ii cpio 2.5-1.2 GNU cpio -- a program to manage ar
ii cramfsprogs 1.1-6 Tools for CramFs (Compressed ROM F
ii dash 0.5.2-1 The Debian Almquist Shell
ii util-linux 2.12-10 Miscellaneous system utilities
-- no debconf information
--===============0452105401==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="mkinitrd.patch"
--- mkinitrd.orig 2005-03-11 18:00:47.000000000 +0100
+++ mkinitrd.new 2005-03-11 20:18:20.575264864 +0100
@@ -175,9 +175,17 @@
)"
printf '%s\n' $devices > getroot
- echo mdadm -A /devfs/md/$minor -R -u $uuid $devices \
- > md$minor-script
echo /sbin/mdadm >&6
+ echo /dev/md$minor >&4
+ echo mdadm -A /dev/md$minor -R -u $uuid $devices \
+ >> md$minor-script
+
+ echo -e "\n # If other RAID disks (and its components) are explicity added in /etc/mkinitrd/files,\n"\
+ "# It is posible to detect and initiate them all:" \
+ >> md$minor-script
+ echo mdadm -A --scan \
+ >> md$minor-script
+ echo /etc/mdadm/mdadm.conf >&4
}
getraid_raidtools() {
--===============0452105401==--
---------------------------------------
Received: (at 299103-done) by bugs.debian.org; 23 May 2005 10:38:50 +0000
>From vorlon@debian.org Mon May 23 03:38:49 2005
Return-path: <vorlon@debian.org>
Received: from dsl093-039-086.pdx1.dsl.speakeasy.net (mauritius.dodds.net) [66.93.39.86]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DaAKe-0002EM-00; Mon, 23 May 2005 03:38:48 -0700
Received: by mauritius.dodds.net (Postfix, from userid 1000)
id 9E9BBA3BF1; Mon, 23 May 2005 03:38:47 -0700 (PDT)
Date: Mon, 23 May 2005 03:38:47 -0700
From: Steve Langasek <vorlon@debian.org>
To: 264839-done@bugs.debian.org, 269726-done@bugs.debian.org,
284763-done@bugs.debian.org, 299103-done@bugs.debian.org,
305145-done@bugs.debian.org
Subject: Re: Processed: Fixed in NMU of initrd-tools 0.1.80
Message-ID: <20050523103847.GC5285@mauritius.dodds.net>
References: <[🔎] E1DZu4k-0002g7-00@newraff.debian.org> <[🔎] handler.s.C.111678248325776.transcript@bugs.debian.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="ABTtc+pdwF7KHXCz"
Content-Disposition: inline
In-Reply-To: <[🔎] handler.s.C.111678248325776.transcript@bugs.debian.org>
User-Agent: Mutt/1.5.9i
Delivered-To: 299103-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: 4
--ABTtc+pdwF7KHXCz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
These bugs are fixed in initrd-tools, but were not closed because the
previous upload was listed as an NMU. The changelog of the upload in
question was as follows:
initrd-tools (0.1.80) unstable; urgency=3Dhigh
* Sven Luther
- Let's add the keyboard input modules on powerpc. (Closes: #264839)
* Maximilian Attems
- Be less noisy when unloading modules. The errors are harmless,
beside initrd shouldn't load that bunch of modules.
Fix makes bootup less "scary" for kernels > 2.6.8.
- Fix boot when using raid root with non devfs kernels.
Closes: #284763, #269726, #305145, #299103
- Warn if root device is not found. Thanks horms@debian.org for the pat=
ch.
Closes: #283919
- Don't try mount a block device for nfs root. thanks Alex Owen
<rao3@leicester.ac.uk> for the patch. Closes: #307471
- Resynchronise with Ubuntu:
Integrate bits needed for RESUME support. thanks to jbailey@debian.or=
g.
-- Sven Luther <luther@debian.org> Sun, 22 May 2005 18:57:04 +0200
Thanks,
--=20
Steve Langasek
postmodern programmer
On Sun, May 22, 2005 at 10:33:08AM -0700, Debian Bug Tracking System wrote:
> Processing commands for control@bugs.debian.org:
>=20
> > tag 264839 + fixed
> Bug#264839: initrd-tools: mkinitrd should include keyboard modules (i8042=
, atkbd) in case an early fsck interaction is needed
> Tags were: pending
> Tags added: fixed
>=20
> > tag 269726 + fixed
> Bug#269726: Software RAID: if kernel compiled without devfs , software ra=
id boot failed
> Tags were: pending
> Tags added: fixed
>=20
> > tag 283919 + fixed
> Bug#283919: initrd-tools: Should warn if root device is not found
> Tags were: pending
> Tags added: fixed
>=20
> > tag 284763 + fixed
> Bug#284763: initrd-tools: md and devfs
> Tags were: pending patch
> Tags added: fixed
>=20
> > tag 299103 + fixed
> Bug#299103: initrd-tools: mkinitrd tries to use devfs in 2.6 series kernel
> Tags were: pending patch
> Tags added: fixed
>=20
> > tag 305145 + fixed
> Bug#305145: initrd-tools: Unable to automatically build initrd.img when u=
sing partition over RAID device
> Tags were: pending
> Tags added: fixed
>=20
> > tag 307471 + fixed
> Bug#307471: initrd-tools: wish init would not run mount_root if rootdev=
=3D255 (ie nfs root).
> Tags were: pending patch
> Tags added: fixed
>=20
> > quit
> Stopping processing here.
--ABTtc+pdwF7KHXCz
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCkbK3KN6ufymYLloRAoP6AJoCOYV7vHEjSLkYwHe14gJVSru/MQCfTMtM
whJwucurZHVZiluNzS39hIQ=
=g2l1
-----END PGP SIGNATURE-----
--ABTtc+pdwF7KHXCz--
Reply to: