diff options
author | Xi Ruoyao <xry111@xry111.site> | 2022-11-18 12:35:53 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2022-11-18 12:40:53 +0800 |
commit | f714a8fa3bdd85d28bd9eb49ab0f1f59e39a5054 (patch) | |
tree | b52d09e1e0f6dfe3cab6d6189d9a423ac8ad7e3c /Makefile | |
parent | 7054cc64eaf9737732a1d63eb5edc9a04af94459 (diff) |
chroot: reword how chroot works
Technically chroot command "tells" bash nothing. It basically calls
chroot("$LFS"), then chdir("/"), then
execve(["/usr/bin/env", "-i", ...]). The kernel also does not tell bash
something like "hey, the root is now $LFS" but just executes (almost) all
system calls from bash as-if $LFS is /.
The man page of chroot says:
DESCRIPTION
Run COMMAND with root directory set to NEWROOT.
Just use the same grammar construction here.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions