summaryrefslogtreecommitdiff
path: root/src/core/umount.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2016-03-10 15:24:21 +0100
committerDaniel Mack <github@zonque.org>2016-03-10 15:24:21 +0100
commitbffac070d0db53d85159598fc53728fd6aa2ee4d (patch)
tree848c57e50ada422d2f089e2a2147dace1ca89b52 /src/core/umount.c
parentead02a14ede96738250c3aac83adf9ecc1b7e2f1 (diff)
parent04a9393122d79a3d14506459b0f2c5348673464c (diff)
Merge pull request #2794 from jhol/dont-unmount-initramfs-mounts
core/mount: Don't unmount initramfs mounts
Diffstat (limited to 'src/core/umount.c')
-rw-r--r--src/core/umount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/umount.c b/src/core/umount.c
index b953fcc152..c21a2be54e 100644
--- a/src/core/umount.c
+++ b/src/core/umount.c
@@ -412,6 +412,7 @@ static int mount_points_list_umount(MountPoint **head, bool *changed, bool log_e
#ifndef HAVE_SPLIT_USR
|| path_equal(m->path, "/usr")
#endif
+ || path_startswith(m->path, "/run/initramfs")
)
continue;