]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(fips): remove old udev version requirements
authorJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 19 Apr 2021 19:34:24 +0000 (19:34 +0000)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 20 Apr 2021 08:51:31 +0000 (10:51 +0200)
modules.d/01fips/fips.sh

index d293b224e141eaaaa848985f1c687690a49310b6..821c26a237a5715ccc7f265cc7d56210526c481e 100755 (executable)
@@ -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))