Skip to content

Commit 4aa2cb1

Browse files
committed
kickstart: Use propper device name
There are device names where the partition number in the name does not consist only of a number: nvme0n1p1, mmcblk1p1. Signed-off-by: Alexey Gladkov <[email protected]>
1 parent 420764d commit 4aa2cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/kickstart/data/bin/kickstart-sh-storage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,11 +883,11 @@ part()
883883
dev="${dev%/*}"
884884
dev="${dev##*/}"
885885

886-
verbose "increasing partition /dev/$dev$partnum"
886+
verbose "increasing partition /dev/$partdev"
887887

888888
printf ', %s\n' "$size" |
889889
sfdisk -q -N "$partnum" "/dev/$dev"
890-
ks_growfs "/dev/$dev$partnum"
890+
ks_growfs "/dev/$partdev"
891891
fi
892892

893893
if [ -n "$encrypted" ]; then

0 commit comments

Comments
 (0)