From: Daniel Golle Date: Fri, 9 Apr 2021 16:33:21 +0000 (+0100) Subject: autopart: use '-' to separate drive serial in volume name X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d2f8d9c90ff93ac835db6e2da4421dcd60838dae;p=openwrt-packages.git 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 --- 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