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
(parent:
2d58aa4
)
switch-root: explain why we don't care about base_filesystem_create() failing
author
Lennart Poettering
<lennart@poettering.net>
Thu, 6 Nov 2014 19:00:01 +0000
(20:00 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 6 Nov 2014 19:00:01 +0000
(20:00 +0100)
src/shared/switch-root.c
patch
|
blob
|
history
diff --git
a/src/shared/switch-root.c
b/src/shared/switch-root.c
index 1a558b897bcb046640ea003892abc838ca193c48..3adb8463c5f373d4cd316c4aab9337d2c3f289a9 100644
(file)
--- a/
src/shared/switch-root.c
+++ b/
src/shared/switch-root.c
@@
-102,6
+102,11
@@
int switch_root(const char *new_root, const char *oldroot, bool detach_oldroot,
}
}
+ /* Do not fail, if base_filesystem_create() fails. Not all
+ * switch roots are like base_filesystem_create() wants them
+ * to look like. They might even boot, if they are RO and
+ * don't have the FS layout. Just ignore the error and
+ * switch_root() nevertheless. */
(void) base_filesystem_create(new_root);
if (chdir(new_root) < 0) {