1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 01:55:32 +03:00

umount: don't try to umount /dev/console, since we are using it

This commit is contained in:
Lennart Poettering 2012-04-12 13:34:09 +02:00
parent 643a14a527
commit 46108b3bfd

View 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;
}