2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-11 20:58:25 +00:00

Fix mismatch for other 'size' attributes

There may be multiple attributes with the word 'size' in it,
correct by matching the whole key value by including
the containing {} characters.
This commit is contained in:
Jarrod Johnson
2020-12-07 07:55:31 -05:00
parent 5f39e73f31
commit 9d2eee0d0b

View File

@@ -44,7 +44,7 @@ if [ -z "$install_disk" ]; then
# Classify entries by DEVTYPE
for entry in $entries; do
DEVSIZE=$(udevadm info --attribute-walk --name=$entry|grep size| sed -e 's/[^"]*"//' -e 's/"//'|tail -n 1)
DEVSIZE=$(udevadm info --attribute-walk --name=$entry|grep {size}| sed -e 's/[^"]*"//' -e 's/"//'|tail -n 1)
if [ -z "$DEVSIZE" -o $DEVSIZE -lt 262144 ]; then
# ignore small devices, that are likely remote media or similar
continue