mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Hard-coding udevadm's location isn't robust enough - for instance, Ubuntu 20.04 moved it to /usr/bin. First see if we can reach it through $PATH, then fall back to hard-coded locations that we know about. Also when finally falling back to udevsettle, check that it exists. Otherwise we end up throwing tons of "No such file or directory" error messages at the user. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Reviewed-by: Steffen Maier <maier@linux.ibm.com> Reviewed-by: Fedor Loshakov <loshakov@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>