core-chroot
Enter a Core Linux root filesystem.
core-chroot [-r] <rootfs> [command [arg...]]
Arguments
| Argument | Description |
|---|---|
<rootfs> | Root filesystem to enter, e.g. one corefs built |
command | Run this instead of a shell, then leave |
Options
| Option | Description |
|---|---|
-r | Leave resolv.conf alone |
-h, --help | Show help |
-V, --version | Show the version |
Mounts
Before it enters, core-chroot sets up:
| Path | What |
|---|---|
proc, sys, dev | proc, sysfs and devtmpfs |
dev/pts | The host's, so your terminal works inside |
dev/shm, run, tmp | Empty tmpfs |
etc/resolv.conf | The host's, read-write, as arch-chroot does |
Everything is unmounted again when you leave.
The shell starts with a clean environment: HOME=/root, your TERM, a
standard PATH, and a (chroot) prompt so you can tell where you are.
Examples
core-chroot ./rootfs
core-chroot /mnt /bin/busybox --install -s
note
core-chroot needs root.