From 46108b3bfd8c4bdf11ec55fa36758057c23c131d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Apr 2012 13:34:09 +0200 Subject: [PATCH] umount: don't try to umount /dev/console, since we are using it --- src/umount.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/umount.c b/src/umount.c index 24c0947f2..57d25e894 100644 --- a/src/umount.c +++ b/src/umount.c @@ -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; } -- 2.30.2