mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-14 11:23:57 +02:00
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
|
@ -70,7 +70,7 @@ autopart_init() {
|
|||
lvmpart=$(get_partition_by_name $diskdev $OWRT_VOLUMES)
|
||||
|
||||
[ "$lvmpart" ] || return
|
||||
lvm_init /dev/$lvmpart "${OWRT_VOLUMES}${diskserial}"
|
||||
lvm_init /dev/$lvmpart "${OWRT_VOLUMES}${diskserial:+-${diskserial:2}}"
|
||||
}
|
||||
|
||||
autopart_init
|
||||
|
|
Loading…
Reference in New Issue
Block a user