Skip to main content

core-chroot

Enter a Core Linux root filesystem.

core-chroot [-r] <rootfs> [command [arg...]]

Arguments​

ArgumentDescription
<rootfs>Root filesystem to enter, e.g. one corefs built
commandRun this instead of a shell, then leave

Options​

OptionDescription
-rLeave resolv.conf alone
-h, --helpShow help
-V, --versionShow the version

Mounts​

Before it enters, core-chroot sets up:

PathWhat
proc, sys, devproc, sysfs and devtmpfs
dev/ptsThe host's, so your terminal works inside
dev/shm, run, tmpEmpty tmpfs
etc/resolv.confThe 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.