]> err.no Git - systemd/commitdiff
umount: don't try to umount /dev/console, since we are using it
authorLennart Poettering <lennart@poettering.net>
Thu, 12 Apr 2012 11:34:09 +0000 (13:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Apr 2012 11:35:56 +0000 (13:35 +0200)
src/umount.c

index 24c0947f2172c624f76940ab7faf5b7af2897430..57d25e8945af19da0881945345ad5c65a8318a8f 100644 (file)
@@ -114,7 +114,12 @@ static int mount_points_list_get(MountPoint **head) {
                         goto finish;
                 }
 
-                if (mount_point_is_api(p) || mount_point_ignore(p)) {
+                /* Ignore mount points we can't unmount because they
+                 * are API or because we are keeping them open (like
+                 * /dev/console) */
+                if (mount_point_is_api(p) ||
+                    mount_point_ignore(p) ||
+                    path_streq(p, "/dev/console")) {
                         free(p);
                         continue;
                 }