initrd-tools: assembles raid using mdadm with devfs device names even when there's no devfs

Bug #6953 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
initrd-tools (Debian)
Fix Released
Unknown
initrd-tools (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Automatically imported from Debian bug report #257865 http://bugs.debian.org/257865

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #257865 http://bugs.debian.org/257865

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 06 Jul 2004 14:05:35 +0200
From: Andreas Kroschel <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: initrd-tools: assembles raid using mdadm with devfs device names even when there's no devfs

Package: initrd-tools
Version: 0.1.71
Severity: critical
Justification: breaks the whole system

For starting a root software RAID in an initrd, mkinitrd creates a
command in /script to assemble the RAID on startup. With raidtools2,
this works fine. But with mdadm the line reads (example)

mdadm -A /devfs/md/0 -R <uid1:uid2:...> <dev1> <dev2> ...
         ^^^^^^^^^^^
instead of /dev/md0, even when there is no devfs installed. This renders
a system without devfs unbootable, if / is on a raid and the raid
modules are loaded from the initrd.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (20, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (ignored: LC_ALL set to de_DE.UTF-8)

Versions of packages initrd-tools depends on:
ii coreutils [fileutils] 5.0.91-2 The GNU core utilities
ii cpio 2.5-1.1 GNU cpio -- a program to manage ar
ii cramfsprogs 1.1-5 Tools for CramFs (Compressed ROM F
ii dash 0.4.26-2 The Debian Almquist Shell
ii fileutils 5.0.91-2 The GNU file management utilities
ii util-linux 2.12-3 Miscellaneous system utilities

-- no debconf information

Revision history for this message
Matt Zimmerman (mdz) wrote :

Remove myself from all these CCs now that we have the warty-bugs mailing list

Revision history for this message
In , Martin Michlmayr (tbm) wrote :

severity 257865 minor
thanks

* Andreas Kroschel <email address hidden> [2004-07-06 14:05]:
> instead of /dev/md0, even when there is no devfs installed. This renders
> a system without devfs unbootable, if / is on a raid and the raid
> modules are loaded from the initrd.

initrd-tools is made to work with Debian kernels which have a specific
configuration. In this case, Debian kernels have devfs built-in and
there are no intentions of supporting something else. Apparently, lvm
won't work at all without devfs.

So either use a Debian kernel and initrd-tools will work for you, or
don't use an initrd at all when you use custom kernels.
--
Martin Michlmayr
<email address hidden>

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 8 Jul 2004 21:04:57 +0200
From: Martin Michlmayr <email address hidden>
To: Andreas Kroschel <email address hidden>
Cc: Debian Bug Tracking System <email address hidden>
Subject: Re: initrd-tools: assembles raid using mdadm with devfs device names even when there's no
 devfs

severity 257865 minor
thanks

* Andreas Kroschel <email address hidden> [2004-07-06 14:05]:
> instead of /dev/md0, even when there is no devfs installed. This renders
> a system without devfs unbootable, if / is on a raid and the raid
> modules are loaded from the initrd.

initrd-tools is made to work with Debian kernels which have a specific
configuration. In this case, Debian kernels have devfs built-in and
there are no intentions of supporting something else. Apparently, lvm
won't work at all without devfs.

So either use a Debian kernel and initrd-tools will work for you, or
don't use an initrd at all when you use custom kernels.
--
Martin Michlmayr
<email address hidden>

Revision history for this message
Matt Zimmerman (mdz) wrote :

Downgraded in Debian; I agree

Revision history for this message
In , Martin Michlmayr (tbm) wrote : closing

As I said before:

initrd-tools is made to work with Debian kernels which have a specific
configuration. In this case, Debian kernels have devfs built-in and
there are no intentions of supporting something else. Apparently, lvm
won't work at all without devfs.

So either use a Debian kernel and initrd-tools will work for you, or
don't use an initrd at all when you use custom kernels.

--
Martin Michlmayr
<email address hidden>

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 27 Jul 2004 15:08:55 +0100
From: Martin Michlmayr <email address hidden>
To: <email address hidden>
Subject: closing

As I said before:

initrd-tools is made to work with Debian kernels which have a specific
configuration. In this case, Debian kernels have devfs built-in and
there are no intentions of supporting something else. Apparently, lvm
won't work at all without devfs.

So either use a Debian kernel and initrd-tools will work for you, or
don't use an initrd at all when you use custom kernels.

--
Martin Michlmayr
<email address hidden>

Changed in initrd-tools:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.