Bug#247051: Package: installation-reports - laptop /lvm root
* Gordon Heydon <gordon@heydon.com.au> [2004-05-04 10:25]:
> > Yeah, that's my assumption too. I've been working on switching d-i
> > from LVM1 to LVM2, but it's waited for a bug in parted to be fixed
> > (parted finds lvm1, but not lvm2 devices, see
> > http://bugs.debian.org/247174).
> >
> I don't know, but I wouldn't think that that would be that hard.
I don't know... I've never had a look at parted... if you want to take
a look, be my guest. The program used by d-i to find devices is
simple:
1015:tbm@deprecation: ..i/packages/partman/partman] m parted_devices.c
#include <parted/parted.h>
int
main(int argc, char *argv[])
{
PedDevice *dev;
ped_exception_fetch_all();
ped_device_probe_all();
for (dev = NULL; NULL != (dev = ped_device_get_next(dev));) {
printf("%s\t%lli\t%s\n",
dev->path,
dev->length * PED_SECTOR_SIZE,
dev->model);
}
return 0;
}
This links against parted... it shows lvm1 but not lvm2 devices.
--
Martin Michlmayr
tbm@cyrius.com
Reply to: