autopart: use '-' to separate drive serial in volume name
authorDaniel Golle <redacted>
Fri, 9 Apr 2021 16:33:21 +0000 (17:33 +0100)
committerDaniel Golle <redacted>
Fri, 9 Apr 2021 16:33:21 +0000 (17:33 +0100)
Instead of just appending the driver serial including the '0x' prefix,
use '-' prefix instead to make it more readable.

Signed-off-by: Daniel Golle <redacted>
utils/autopart/files/autopart

index 6d946c6995752a78ba05248fddd2e5e449f5e2d7..c35b238adc5d25f657e27c9d0a66ecdccbe7ba4c 100644 (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
git clone https://git.99rst.org/PROJECT