[Parted-maintainers] Bug#548436: kFreeBSD _device_get_part_path() doesn't support GPT

Robert Millan rmh.debian.bts at aybabtu.com
Sat Sep 26 11:55:48 UTC 2009


Package: libparted1.8-12
Version: 1.8.8.git.2009.07.19-5
Severity: important

In _device_get_part_path(), (from freebsd.c):

        /* append slice number (ad0, partition 1 => ad0s1)*/
        snprintf (result, result_len, "%ss%d", dev->path, num);

ad[0-9]s[0-9] form is used unconditionally.  However, on GPT labels kFreeBSD
uses ad[0-9]p[0-9] form.

Using D-I to install Debian GNU/kFreeBSD on a GPT disk fails due to partman
attempting to run mkfs on non-existant /dev/ad0sX, whereas /dev/ad0pX should
be used.

According to Colin Watson, libparted is what D-I relies on to perform this
conversion, so I would assume it to be the culprit.

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-libre2-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Parted-maintainers mailing list