Skip to content

fai-diskimage: Error only if unsuccessful - #140

Closed
g0tmi1k wants to merge 1 commit into
faiproject:masterfrom
g0tmi1k:umount
Closed

fai-diskimage: Error only if unsuccessful#140
g0tmi1k wants to merge 1 commit into
faiproject:masterfrom
g0tmi1k:umount

Conversation

@g0tmi1k

@g0tmi1k g0tmi1k commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Don't print "cannot umount" when umount actually succeeded.


I was using https://salsa.debian.org/cloud-team/debian-cloud-images and noticed the following error:

ERROR: fai-diskimage cannot umount /tmp/fai-diskimage.RDiO18/localdebs
ERROR: fai-diskimage cannot umount /tmp/fai-diskimage.RDiO18/boot/efi
ERROR: fai-diskimage cannot umount /tmp/fai-diskimage.RDiO18

Looking into it, cleanup() retries umount up to 15 times, then always prints an ERROR line no matter what happened. Even on success.

@Mrfai

Mrfai commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for the patch. It was applied.

@Mrfai Mrfai closed this Aug 3, 2026
@g0tmi1k

g0tmi1k commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

You are welcome

REF: 4885c1b

@g0tmi1k
g0tmi1k deleted the umount branch August 3, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants