summaryrefslogtreecommitdiff
path: root/scripts/install/install-get-partition
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install/install-get-partition')
-rwxr-xr-xscripts/install/install-get-partition2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition
index 560125c2..5d4f5541 100755
--- a/scripts/install/install-get-partition
+++ b/scripts/install/install-get-partition
@@ -363,7 +363,7 @@ select_partition () {
if [ ${part:0:2} = "md" ]; then
parttype="RAID"
else
- rootdev=$(echo $part | sed 's/[0-9]//g')
+ rootdev=$(echo $part | sed -E 's/p?[0-9]$//g')
parttype=$(fdisk -l /dev/$rootdev | grep $part | grep Linux)
fi
if [ -n "$parttype" ]; then