Skip to content

Explain low-space update failures from snapshots - #9893

Open
nontradition wants to merge 1 commit into
omacom:quattrofrom
nontradition:improve-update-space-snapshot-message
Open

nontradition wants to merge 1 commit into
omacom:quattrofrom
nontradition:improve-update-space-snapshot-message

Conversation

@nontradition

Copy link
Copy Markdown

Summary

  • keep the 10 GiB free-space guard
  • add a follow-up hint when / is a Btrfs snapshot subvolume
  • cover the snapshot message in the update disk-space test

Tests

  • bash ./test/shell.d/update-disk-space-test.sh

@AlanRockefeller

Copy link
Copy Markdown

Thanks for improving this message. I hit the general low-space path today on Omarchy 4.5.0-3. The actionable “You need at least 10 GiB free” line was present, but it was easy to miss above the prominent generic failure banner; I initially believed the update had failed without explaining why.

Would you consider including the measured values and keeping the preflight explanation as the final visible error? For example:

Update requires 10 GiB free; 6.1 GiB is available. Free another 3.9 GiB, then retry.

A regression test could verify the available/shortfall values and the final visible message.

Separately, retries overwrite /tmp/omarchy-update.log, which makes the original failure harder to diagnose. That may be better handled as a separate follow-up rather than expanding this PR.

@chessing234

Copy link
Copy Markdown
Contributor

@dhh @omarchybot the snapshot-boot hint from this PR is in #21027.

The low-space path still prints update.needsFreeSpace (the existing translation). The English snapshot sentence is added only when findmnt -no OPTIONS / shows subvol=.snapshots/*/snapshot. I did not add a new i18n key. The same helper then does the unallocated-chunk stop from #15590, and the test stub answers OPTIONS, FSTYPE, and SOURCE separately so those checks do not collide.

Please consider closing this as superseded only after #21027 is accepted. Leaving the close to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants