By the way, interesting observation in this content.

The 'p' separator is only used when parted /creates/ partition (thus
adding them through its own call to DM/dm_add_partition()  function).

If the partitions already exist and are only formatted, parted won't have to 
create them, and the '-part' separator from the kpartx call in 
/lib/partman/commit.d/31multipath_partitions kicks in.
Also, existing partitions from other devices (even non-formatted) show up with 
'-part' due to that kpartx call and the absence of parted partition creation.

The remaining problem is that subsequent stages which query partitions
names/path from parted will still receive 'p' separator, and fail, as
the those device names don't exist (e.g., the swap formatting error
above).

Maybe a solution is to remove the devices with parted's 'p'-separator
with 'kpartx -d [-p p]', re-add them with 'kpartx -a -p -part', and
create a symlink for a device name with 'p'.

That will make the '-part' device names available for everywhere (lots
of code use them in partman.. also grub-installer, at least). It still
doesn't fix this bug (as the device names for /etc/fstab come from
parted.. so, with 'p'.. but helps in some way.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1424734

Title:
  Incorrect multipath device names in /etc/fstab

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-target/+bug/1424734/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to