Skip to content

Commit

Permalink
fix(fips): remove old udev version requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbg authored and haraldh committed Apr 20, 2021
1 parent fc53987 commit be30d98
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules.d/01fips/fips.sh
Expand Up @@ -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))
Expand Down

0 comments on commit be30d98

Please sign in to comment.