chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
643a14a
)
umount: don't try to umount /dev/console, since we are using it
author
Lennart Poettering
<lennart@poettering.net>
Thu, 12 Apr 2012 11:34:09 +0000
(13:34 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 12 Apr 2012 11:35:56 +0000
(13:35 +0200)
src/umount.c
patch
|
blob
|
history
diff --git
a/src/umount.c
b/src/umount.c
index 24c0947f2172c624f76940ab7faf5b7af2897430..57d25e8945af19da0881945345ad5c65a8318a8f 100644
(file)
--- a/
src/umount.c
+++ b/
src/umount.c
@@
-114,7
+114,12
@@
static int mount_points_list_get(MountPoint **head) {
goto finish;
}
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;
}
free(p);
continue;
}