Browse Source

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>
lilik-openwrt-22.03
Daniel Golle 4 years ago
parent
commit
d2f8d9c90f
No known key found for this signature in database GPG Key ID: 5A8F39C31C3217CA
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/autopart/files/autopart

+ 1
- 1
utils/autopart/files/autopart View File

@ -70,7 +70,7 @@ autopart_init() {
lvmpart=$(get_partition_by_name $diskdev $OWRT_VOLUMES) lvmpart=$(get_partition_by_name $diskdev $OWRT_VOLUMES)
[ "$lvmpart" ] || return [ "$lvmpart" ] || return
lvm_init /dev/$lvmpart "${OWRT_VOLUMES}${diskserial}"
lvm_init /dev/$lvmpart "${OWRT_VOLUMES}${diskserial:+-${diskserial:2}}"
} }
autopart_init autopart_init


Loading…
Cancel
Save