init: add an init_chroot helper
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Jul 2020 09:26:13 +0000 (11:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:17:52 +0000 (08:17 +0200)
commit4b7ca5014cbef51cdb99fd644eae4f3773747a05
tree694867036c56c7e99e0dd8754af9526d8d00c04c
parentdb63f1e315384590b979f8f74abd1b5363b69894
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>
drivers/base/devtmpfs.c
fs/init.c
fs/open.c
include/linux/init_syscalls.h
include/linux/syscalls.h
init/do_mounts.c
init/do_mounts_initrd.c