init: add an init_chroot helper
Add a simple helper to chroot with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_chroot. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -629,7 +629,7 @@ void __init prepare_namespace(void)
|
||||
out:
|
||||
devtmpfs_mount();
|
||||
init_mount(".", "/", NULL, MS_MOVE, NULL);
|
||||
ksys_chroot(".");
|
||||
init_chroot(".");
|
||||
}
|
||||
|
||||
static bool is_tmpfs;
|
||||
|
Fai riferimento in un nuovo problema
Block a user