This does the trick in bash, but *not* in sh/dash:
DM_NAME=ubuntu--vg-ubuntu--lv
t=${DM_NAME//--/_}
vg=${t%-*}; vg=${vg/_/-}
lv=${t#*-}; lv=${lv/_/-}
echo "/dev/$vg/$lv"-- 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
