Whether we put some binaries in /bin or in /usr/bin should not have any
effect on unmounting during shutdown. Even if people split /usr/ off we
should not try to unmount it, no matter what as it is simply where
binaries are placed.
}
static bool nonunmountable_path(const char *path) {
- return path_equal(path, "/")
-#if ! HAVE_SPLIT_USR
- || path_equal(path, "/usr")
-#endif
- || path_startswith(path, "/run/initramfs");
+ assert(path);
+
+ return PATH_IN_SET(path, "/", "/usr") ||
+ path_startswith(path, "/run/initramfs");
}
static void log_umount_blockers(const char *mnt) {