mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-10 00:58:20 +03:00
switch-root: explain why we don't care about base_filesystem_create() failing
This commit is contained in:
parent
2d58aa4692
commit
64e18fd626
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user