Merge pull request #21828 from abbradar/hwdb-verify

udev service: verify that hwdb is generated without errors
This commit is contained in:
Nikolay Amiantov 2017-01-15 19:53:53 +03:00 committed by GitHub
commit 3eafa26d75

View File

@ -143,7 +143,10 @@ let
done
echo "Generating hwdb database..."
${udev}/bin/udevadm hwdb --update --root=$(pwd)
# hwdb --update doesn't return error code even on errors!
res="$(${udev}/bin/udevadm hwdb --update --root=$(pwd) 2>&1)"
echo "$res"
[ -z "$(echo "$res" | egrep '^Error')" ]
mv etc/udev/hwdb.bin $out
'';