aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-04-09 17:33:21 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-04-09 17:33:21 +0100
commitd2f8d9c90ff93ac835db6e2da4421dcd60838dae (patch)
tree6445b700625987d091d8997752945c42354f32c6
parent3aa128f00745db22d1f2ed81d3bb3704d6c65780 (diff)
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>
-rw-r--r--utils/autopart/files/autopart2
1 files changed, 1 insertions, 1 deletions
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