summaryrefslogtreecommitdiff
path: root/src/libcore/umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/umount.c')
-rw-r--r--src/libcore/umount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcore/umount.c b/src/libcore/umount.c
index a458768e7d..c21a2be54e 100644
--- a/src/libcore/umount.c
+++ b/src/libcore/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;
@@ -472,7 +473,7 @@ static int loopback_points_list_detach(MountPoint **head, bool *changed) {
major(root_st.st_dev) != 0 &&
lstat(m->path, &loopback_st) >= 0 &&
root_st.st_dev == loopback_st.st_rdev) {
- n_failed ++;
+ n_failed++;
continue;
}
@@ -507,7 +508,7 @@ static int dm_points_list_detach(MountPoint **head, bool *changed) {
if (k >= 0 &&
major(root_st.st_dev) != 0 &&
root_st.st_dev == m->devnum) {
- n_failed ++;
+ n_failed++;
continue;
}