mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix vg listing
This commit is contained in:
parent
482fa04ee3
commit
fd2e4b3b27
1 changed files with 3 additions and 3 deletions
|
@ -701,10 +701,10 @@ _findvg()
|
|||
|
||||
_getavailablevg()
|
||||
{
|
||||
for i in $(vgs -o vg_name,vg_free --noheading --units m); do
|
||||
if ! echo "${i}" | grep -q " 0m$"; then
|
||||
for i in $(vgs -o vg_name --noheading); do
|
||||
if ! vgs -o vg_free "${i}" | grep -q " 0m$"; then
|
||||
#shellcheck disable=SC2028
|
||||
echo "${i}"\n
|
||||
echo "${i}"'\\n'
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue