diff --git a/src/basic/efivars.c b/src/basic/efivars.c index f40c8a09e0..f54c3d22e9 100644 --- a/src/basic/efivars.c +++ b/src/basic/efivars.c @@ -114,6 +114,9 @@ int efi_get_variable( return log_debug_errno(SYNTHETIC_ERRNO(EBUSY), "Reading EFI variable '%s' failed even after %u tries, giving up.", p, try); if (try >= EFI_N_RETRIES_NO_DELAY) (void) usleep_safe(EFI_RETRY_DELAY); + + /* Start from the beginning */ + (void) lseek(fd, 0, SEEK_SET); } /* Unfortunately kernel reports EOF if there's an inconsistency between efivarfs var list and