1
0
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:
Daniel Golle 2021-04-09 17:33:21 +01:00
parent 3aa128f007
commit d2f8d9c90f
No known key found for this signature in database
GPG Key ID: 5A8F39C31C3217CA

View File

@ -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