udev service: verify that hwdb is generated without errors
This commit is contained in:
parent
f673243aff
commit
6dbcf7d2e9
|
@ -143,7 +143,10 @@ let
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Generating hwdb database..."
|
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
|
mv etc/udev/hwdb.bin $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue