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:
@@ -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
|
||||
|
Reference in New Issue
Block a user