]> git.ipfire.org Git - thirdparty/util-linux.git/commit
switch_root: umount mount points we cannot move with MNT_DETACH
authorHarald Hoyer <harald@redhat.com>
Mon, 14 Nov 2011 13:11:01 +0000 (14:11 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 14 Nov 2011 13:49:37 +0000 (14:49 +0100)
commit944de78b5d83e548f7c428ef5c08c69e6984cc4f
treef2b17cd168dfb5f0dac081e95135f0b3f3d6356d
parent7c54823c821cc57e65a68d667acacbb567c92c25
switch_root: umount mount points we cannot move with MNT_DETACH

If a mount point cannot be moved to the new root, umount it with
MNT_DETACH, so that it is lazy umounted and does not show up in
/proc/mounts anymore.

[kzak@redhat.com: - add MNT_DETACH macro fallback]

Signed-off-by: Harald Hoyer <harald@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/switch_root.c