[Parted-maintainers] Bug#281734: parted: doesn't calculate partition paths correctly when using udev with devfs rules
Sven Luther
Sven Luther <sven.luther@wanadoo.fr>, 281734@bugs.debian.org
Wed, 17 Nov 2004 16:33:57 +0100
On Wed, Nov 17, 2004 at 03:21:04PM +0000, Colin Watson wrote:
> On Wed, Nov 17, 2004 at 04:15:18PM +0100, Sven Luther wrote:
> > On Wed, Nov 17, 2004 at 03:00:04PM +0000, Colin Watson wrote:
> > > When you're using a system running udev with the devfs compatibility
> > > rules (as d-i probably will at least for a while once it switches to
> > > udev, assuming Debian takes the same route as I'm taking for Ubuntu),
> > > parted fails to calculate partition paths correctly because its /disc ->
> > > /partN substitution is only used when /dev/.devfsd is present.
> > >
> > > I've fixed this in Ubuntu by simply looking for /disc at the end of the
> > > path and always doing the /partN substitution if it's found. Here's the
> > > patch:
> > >
> > > http://people.ubuntulinux.org/patches/parted-udev-devfs-rules.patch
> >
> > Thanks, i will have a look. Do you really think this may break something for
> > sarge ?
>
> I haven't tested the patch heavily; so far, it's been tested to the
> extent of a single working installation. I haven't tested it with devfs,
> with ordinary udev, or with static /dev.
>
> > After all many will like to run udev outside of d-i, and also use
> > parted in this case ?
>
> Most people using udev outside of d-i will be using the traditional /dev
> layout rather than the devfs layout. My patch only helps if you're using
> the devfs layout; for the traditional layout, parted already works fine.
Oh ...
Well, i have some stuff complaining about missing disc at the end in the LVM
over RAID case, may this be related ?
Friendly,
Sven Luther