Skip to content

Commit

Permalink
deploy: Log calculated needed space
Browse files Browse the repository at this point in the history
To aid debugging issues like coreos/fedora-coreos-tracker#1637

If we're hitting this path where we think we have enough space,
let's log what we calculated here to aid in diagnosing why we
may later fail with ENOSPC.
  • Loading branch information
cgwalters committed Dec 19, 2023
1 parent 41c56b3 commit b181b99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libostree/ostree-sysroot-deploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,11 @@ auto_early_prune_old_deployments (OstreeSysroot *self, GPtrArray *new_deployment
/* does the bootfs have enough free space for temporarily holding both the new
* and old bootdirs? */
if (bootfs_has_space)
return TRUE; /* nothing to do! */
{
g_autofree char *net_new_formatted = g_format_size (net_new_bootcsum_dirs_total_size);
g_print ("bootfs is sufficient for calculated new size: %s\n", net_new_formatted);
return TRUE; /* nothing to do! */
}
}

/* OK, we would fail if we tried to write the new bootdirs. Is it salvageable?
Expand Down

0 comments on commit b181b99

Please sign in to comment.