diff --git a/bootchain-localdev/data/bin/scandev-sh-functions b/bootchain-localdev/data/bin/scandev-sh-functions index 0ea9512..d372702 100644 --- a/bootchain-localdev/data/bin/scandev-sh-functions +++ b/bootchain-localdev/data/bin/scandev-sh-functions @@ -129,6 +129,7 @@ scan_devices() local major minor n_blocks devname local x f excludes="0 1 2 7 35 37" local n_targets=0 saved= + local saved_part= local all_parts= _check_field() @@ -276,6 +277,7 @@ scan_devices() fi # Save the current values + saved_part="$devname" minor="$target" f="$whole" @@ -320,7 +322,7 @@ scan_devices() fi if [ -n "$part" ]; then - if [ "$part" = "$devname" ]; then + if [ "$part" = "$saved_part" ]; then target=1 else _add_device "$saved"