From d2f8d9c90ff93ac835db6e2da4421dcd60838dae Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 9 Apr 2021 17:33:21 +0100 Subject: [PATCH] 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 --- utils/autopart/files/autopart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/autopart/files/autopart b/utils/autopart/files/autopart index 6d946c699..c35b238ad 100644 --- a/utils/autopart/files/autopart +++ b/utils/autopart/files/autopart @@ -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