Merge pull request #3213 from rborn-tx/fix-early-prune

This commit is contained in:
Jonathan Lebon 2024-03-13 13:24:27 -04:00 committed by GitHub
commit c314eaa90c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2641,6 +2641,9 @@ auto_early_prune_old_deployments (OstreeSysroot *self, GPtrArray *new_deployment
if (self->booted_deployment == NULL)
return TRUE;
if (!_ostree_sysroot_ensure_boot_fd (self, error))
return FALSE;
{
struct stat stbuf;
if (!glnx_fstatat (self->boot_fd, ".", &stbuf, 0, error))