aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-11-18 12:35:53 +0800
committerXi Ruoyao <xry111@xry111.site>2022-11-18 12:40:53 +0800
commitf714a8fa3bdd85d28bd9eb49ab0f1f59e39a5054 (patch)
treeb52d09e1e0f6dfe3cab6d6189d9a423ac8ad7e3c /Makefile
parent7054cc64eaf9737732a1d63eb5edc9a04af94459 (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