Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysroot-remount: umount races on shutdown #2436

Open
lucab opened this issue Sep 8, 2021 · 1 comment
Open

sysroot-remount: umount races on shutdown #2436

lucab opened this issue Sep 8, 2021 · 1 comment

Comments

@lucab
Copy link
Member

lucab commented Sep 8, 2021

While looking into #2283 I noticed some possible umount races on shutdown for the the ostree bindmounts. This shows up in in the journal logs for the (automatically mirrored) mount units:

systemd[1]: Unmounting /etc...
systemd[1]: Unmounting /var...
umount[1635]: umount: /etc: target is busy.
umount[1639]: umount: /var: target is busy.
systemd[1]: etc.mount: Mount process exited, code=exited status=32
systemd[1]: Failed unmounting /etc.
systemd[1]: var.mount: Mount process exited, code=exited status=32
systemd[1]: Failed unmounting /var.
@lucab
Copy link
Member Author

lucab commented Sep 8, 2021

It looks like the main culprit here may be systemd itself, in particular journald . The logs above are on a system with systemd v239.
On a system with a newer systemd version (v248) I'm not seeing those races/failures. The bindmounts instead are cleaned at the bottom through systemd-shutdown. systemd/systemd#12230 is possibly the one that fixed it.

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

No branches or pull requests

1 participant