diff --git a/modules.d/01fips/fips.sh b/modules.d/01fips/fips.sh index e0caf36d66..e49ff670be 100755 --- a/modules.d/01fips/fips.sh +++ b/modules.d/01fips/fips.sh @@ -47,7 +47,7 @@ mount_boot() { mkdir -p /boot fips_info "Mounting $boot as /boot" mount -oro "$boot" /boot || return 1 - elif [ -d "$NEWROOT/boot" ]; then + elif ! ismounted /boot && [ -d "$NEWROOT/boot" ]; then # shellcheck disable=SC2114 rm -fr -- /boot ln -sf "$NEWROOT/boot" /boot