summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Edström <github@legogris.se>2019-12-03 10:53:49 +0900
committerRobert Edström <github@legogris.se>2019-12-03 10:53:49 +0900
commit16eb9bf96c778a88f3539d8ee0678a8de4e39a3e (patch)
tree29dfd5f9be87894e514465437b15411cbbf7a527 /scripts
parentd139852058bff2f70b5de4bc64849cda21f2a532 (diff)
downloadvyatta-cfg-system-16eb9bf96c778a88f3539d8ee0678a8de4e39a3e.tar.gz
vyatta-cfg-system-16eb9bf96c778a88f3539d8ee0678a8de4e39a3e.zip
Fix rootdev regex to support mmcblk devices
Diffstat (limited to 'scripts')
-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