Skip to content

Commit

Permalink
Merge pull request ostreedev#2870 from dustymabe/dusty-log-messages
Browse files Browse the repository at this point in the history
lib/deploy: Disambiguate error messages for early prune space check
  • Loading branch information
cgwalters authored Jun 1, 2023
2 parents 0dd2788 + a51535b commit 5eacc96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libostree/ostree-sysroot-deploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2581,7 +2581,7 @@ auto_early_prune_old_deployments (OstreeSysroot *self, GPtrArray *new_deployment
gboolean bootfs_has_space = FALSE;
if (!dfd_fallocate_check (self->boot_fd, net_new_bootcsum_dirs_total_size, &bootfs_has_space,
error))
return glnx_prefix_error (error, "Checking if bootfs has space");
return glnx_prefix_error (error, "Checking if bootfs has sufficient space");

/* does the bootfs have enough free space for temporarily holding both the new
* and old bootdirs? */
Expand All @@ -2607,7 +2607,7 @@ auto_early_prune_old_deployments (OstreeSysroot *self, GPtrArray *new_deployment
if (!dfd_fallocate_check (
self->boot_fd, net_new_bootcsum_dirs_total_size - bootcsum_dirs_to_remove_total_size,
&bootfs_has_space, error))
return glnx_prefix_error (error, "Checking if bootfs has space");
return glnx_prefix_error (error, "Checking if prune would give bootfs sufficient space");

if (!bootfs_has_space)
{
Expand Down

0 comments on commit 5eacc96

Please sign in to comment.