mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
fix one check
This commit is contained in:
parent
08586acb17
commit
1db26141d5
1 changed files with 2 additions and 2 deletions
|
@ -860,7 +860,7 @@ _raid()
|
|||
realdevice="$(cryptsetup status $devpath 2>/dev/null | grep "device:.*/dev/mapper/" | sed -e 's#.*\ ##g')"
|
||||
if [ "$(lvs $realdevice 2>/dev/null)" ]; then
|
||||
vg="$(lvs -o vg_name --noheading $realdevice)"
|
||||
if [ "$(pvs -o pv_name,vg_name --noheading | grep "$vg" | grep "/dev/md")" ]; then
|
||||
if [ "$(pvs -o pv_name,vg_name --noheading | grep "$vg$" | grep "/dev/md")" ]; then
|
||||
ALREADYINUSE="$ALREADYINUSE /dev/mapper/$devpath"
|
||||
fi
|
||||
fi
|
||||
|
@ -975,7 +975,7 @@ _raidpartitions()
|
|||
realdevice="$(cryptsetup status $devpath 2>/dev/null | grep "device:.*/dev/mapper/" | sed -e 's#.*\ ##g')"
|
||||
if [ "$(lvs $realdevice 2>/dev/null)" ]; then
|
||||
vg="$(lvs -o vg_name --noheading $realdevice)"
|
||||
if [ "$(pvs -o pv_name,vg_name --noheading | grep "$vg" | grep "/dev/md")" ]; then
|
||||
if [ "$(pvs -o pv_name,vg_name --noheading | grep "$vg$" | grep "/dev/md")" ]; then
|
||||
ALREADYINUSE="$ALREADYINUSE /dev/mapper/$devpath"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue