fix: store PartitionName when on NVMe disk
Fixes #978 Signed-off-by: Seán C McCord <ulexus@gmail.com>
This commit is contained in:
parent
620efe52ef
commit
6d22744eca
@ -194,6 +194,7 @@ func (t *Target) Partition(bd *blockdevice.BlockDevice) (err error) {
|
||||
// multiple places.
|
||||
switch dev := t.Device; {
|
||||
case strings.HasPrefix(dev, "/dev/nvme"):
|
||||
fallthrough
|
||||
case strings.HasPrefix(dev, "/dev/loop"):
|
||||
t.PartitionName = t.Device + "p" + strconv.Itoa(int(part.No()))
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user