mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
fixed check in pv creation
This commit is contained in:
parent
d1fe24c2f0
commit
414eb5b602
1 changed files with 3 additions and 1 deletions
|
@ -1178,7 +1178,9 @@ _createpv()
|
|||
# skip already encrypted volume devices
|
||||
for devpath in $(ls /dev/mapper/ 2>/dev/null | grep -v control); do
|
||||
realdevice="$(cryptsetup status $devpath 2>/dev/null | grep "device:.*/dev/mapper/" | sed -e 's#.*\ ##g')"
|
||||
[ "$(lvs $realdevice 2>/dev/null)" ] && ALREADYINUSE="$ALREADYINUSE /dev/mapper/$devpath"
|
||||
if ! [ "$realdevice" = "" ]; then
|
||||
[ "$(lvs $realdevice 2>/dev/null)" ] && ALREADYINUSE="$ALREADYINUSE /dev/mapper/$devpath"
|
||||
fi
|
||||
done
|
||||
# skip md devices, which already have lvm devices!
|
||||
for i in $PARTS; do
|
||||
|
|
Loading…
Reference in a new issue