From 16eb9bf96c778a88f3539d8ee0678a8de4e39a3e Mon Sep 17 00:00:00 2001 From: Robert Edström Date: Tue, 3 Dec 2019 10:53:49 +0900 Subject: Fix rootdev regex to support mmcblk devices --- scripts/install/install-get-partition | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3