autopart: use '-' to separate drive serial in volume name
Instead of just appending the driver serial including the '0x' prefix, use '-' prefix instead to make it more readable. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
3aa128f007
commit
d2f8d9c90f
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ autopart_init() {
|
||||||
lvmpart=$(get_partition_by_name $diskdev $OWRT_VOLUMES)
|
lvmpart=$(get_partition_by_name $diskdev $OWRT_VOLUMES)
|
||||||
|
|
||||||
[ "$lvmpart" ] || return
|
[ "$lvmpart" ] || return
|
||||||
lvm_init /dev/$lvmpart "${OWRT_VOLUMES}${diskserial}"
|
lvm_init /dev/$lvmpart "${OWRT_VOLUMES}${diskserial:+-${diskserial:2}}"
|
||||||
}
|
}
|
||||||
|
|
||||||
autopart_init
|
autopart_init
|
||||||
|
|
Loading…
Reference in a new issue