This will do in Posix sh but uses sed:

echo /dev/$DM_NAME | sed -e 's/-/\//g' -e 's/\/\//-/g'

-- 
lvm volumes fail to mount when specified as /dev/vg-name/volume
https://bugs.launchpad.net/bugs/430542
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to