diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-04 17:06:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-04 17:06:06 +0100 |
commit | 0e618cb7c0c2a6a4b95957449acd671947d109c7 (patch) | |
tree | 29dfd5f9be87894e514465437b15411cbbf7a527 /scripts/install/install-get-partition | |
parent | d139852058bff2f70b5de4bc64849cda21f2a532 (diff) | |
parent | 16eb9bf96c778a88f3539d8ee0678a8de4e39a3e (diff) | |
download | vyatta-cfg-system-0e618cb7c0c2a6a4b95957449acd671947d109c7.tar.gz vyatta-cfg-system-0e618cb7c0c2a6a4b95957449acd671947d109c7.zip |
Merge pull request #110 from Legogris/fix-mmcsupport
Fix rootdev regex to support mmcblk devices
Diffstat (limited to 'scripts/install/install-get-partition')
-rwxr-xr-x | scripts/install/install-get-partition | 2 |
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 |