[systemd-bugs] [Bug 56837] Enable custom path to be ignored on shutdown umount cycle
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jan 15 01:39:52 PST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=56837
--- Comment #2 from aleksei.lissitsin at gmail.com ---
I cannot say how it is with the up-to-date systemd. I should test on that
machine.
But back then (07.11.2012) it DID manage to unmount the host solely by
bind-mount path.
I found another workaround for that: I just manually unmount the bind-mount on
shutdown with umount (and it correctly just removes the bind-mount). Then the
host is not in mountinfo, and systemd does not try to unmount it.
(Although (this is another issue of course) for some strange reason one cannot
guarantee that on-shutdown script ends before systemd umount cycle begins, so
there is a race, but so far my script is lucky.)
So to wrap it, the problem here seems to be that
umount2(m->path, MNT_FORCE)
in function mount_points_list_umount of core/umount.c
actually manages to unmount the host (/dev/sda2) by its bind-mount name no
matter whether it is busy or not.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130115/4f35f165/attachment.html>
More information about the systemd-bugs
mailing list