[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:00:04 +0000


Package: parted
Version: 1.6.11-8
Severity: normal

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

Cheers,

-- 
Colin Watson                                       [cjwatson@debian.org]