[Parted-maintainers] Bug#281734: parted: doesn't calculate partition paths correctly when using udev with devfs rules

Colin Watson Colin Watson <cjwatson@debian.org>, 281734@bugs.debian.org
Wed, 17 Nov 2004 15:21:04 +0000


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.

Cheers,

-- 
Colin Watson                                       [cjwatson@debian.org]