[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#402410: debian-installer: LVM setup broken if hostname/VG contains a "-" character

On Mon, Dec 11, 2006 at 07:40:13PM +0100, Frans Pop <elendil@planet.nl> wrote:
> On Sunday 10 December 2006 10:45, Mike Hommey wrote:
> > As a hostname for this testbed, I chose "qemu-test", which, as far as I
> > know is a valid hostname.
> >
> > When d-i was creating the filesystems, it complained it wasn't able to
> > find /dev/mapper/qemu-test-* devices, and checking in the console
> > showed that the devices were indeed named /dev/mapper/qemu--test-*
> > instead.
> I need some help here.
> According to the test that David Härdeman introduced recently, a hyphen 
> _is_ a valid character for VG and LV names.
> So what is the actual bug here:
> - a hyphen is not a valid character after all
> - the kernel/udev creates a device where a hyphen is doubled
> - the installer should anticipate that hyphens will be doubled

the hyphen is a valid character, but it is doubled in the /dev/mapper
device name (because the hyphen separates VG and LV names). Note that
the /dev/$VG/$LV mapping doesn't double the hyphens.

Remaining question: are there others "special" characters in VG and LV
names ?


Reply to: