diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c index 5d2d729bf0..f777b92f0d 100644 --- a/src/libostree/ostree-sysroot-deploy.c +++ b/src/libostree/ostree-sysroot-deploy.c @@ -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))