From be30d98751cff4ace660215305e2468943a45754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3hann=20B=2E=20Gu=C3=B0mundsson?= Date: Mon, 19 Apr 2021 19:34:24 +0000 Subject: [PATCH] fix(fips): remove old udev version requirements --- modules.d/01fips/fips.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules.d/01fips/fips.sh b/modules.d/01fips/fips.sh index d293b224e1..821c26a237 100755 --- a/modules.d/01fips/fips.sh +++ b/modules.d/01fips/fips.sh @@ -31,14 +31,10 @@ mount_boot() { if ! [ -e "$boot" ]; then udevadm trigger --action=add > /dev/null 2>&1 - [ -z "$UDEVVERSION" ] && UDEVVERSION=$(udevadm --version) + i=0 while ! [ -e "$boot" ]; do - if [ "$UDEVVERSION" -ge 143 ]; then - udevadm settle --exit-if-exists="$boot" - else - udevadm settle --timeout=30 - fi + udevadm settle --exit-if-exists="$boot" [ -e "$boot" ] && break sleep 0.5 i=$((i + 1))