diff options
author | Robert Edström <github@legogris.se> | 2019-12-03 10:53:49 +0900 |
---|---|---|
committer | Robert Edström <github@legogris.se> | 2019-12-03 10:53:49 +0900 |
commit | 16eb9bf96c778a88f3539d8ee0678a8de4e39a3e (patch) | |
tree | 29dfd5f9be87894e514465437b15411cbbf7a527 /scripts | |
parent | d139852058bff2f70b5de4bc64849cda21f2a532 (diff) | |
download | vyatta-cfg-system-16eb9bf96c778a88f3539d8ee0678a8de4e39a3e.tar.gz vyatta-cfg-system-16eb9bf96c778a88f3539d8ee0678a8de4e39a3e.zip |
Fix rootdev regex to support mmcblk devices
Diffstat (limited to 'scripts')
-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 |