Commit a9463e4a authored by Ain's avatar Ain Committed by Natanael Copa
Browse files

Make fetching the DMI uuid fail silently

This flag does not exist on most non-x86 platforms.
parent 4bf4c75f
......@@ -519,7 +519,7 @@ if [ -z "$KOPT_apkovl" ]; then
fi
elif is_url "$KOPT_apkovl"; then
# Fetch apkovl via network
MACHINE_UUID=$(cat /sys/class/dmi/id/product_uuid)
MACHINE_UUID=$(cat /sys/class/dmi/id/product_uuid 2>/dev/null)
url="${KOPT_apkovl/{MAC\}/$MAC_ADDRESS}"
url="${url/{UUID\}/$MACHINE_UUID}"
ovl=/tmp/${url##*/}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment