Easily scriptable chroots
Go to file
Fierelier dd87ccb232 Remove "all" script category 2023-07-05 05:01:47 +02:00
scripts Big update 2023-07-05 04:30:47 +02:00
.gitignore Big update 2023-07-05 04:30:47 +02:00
mfchroot Remove "all" script category 2023-07-05 05:01:47 +02:00
readme.txt Big update 2023-07-05 04:30:47 +02:00

readme.txt

Syntax: ./mfchroot [flags] <dir> [command] [arg 1] [arg 2] ...

Chroots into a directory, and optionally sets up additional things.

Flags:
* -m: Mount the chroot, but don't actually chroot into it.
* -u: Unmount the chroot, useful for copying, moving, deleting the chroot.

---

Scripts are sourced from '$scriptdir/scripts/*' and '$chroot/opt/mfchroot/scripts/*'. If the scripts have the same name in the second folder, it overrides scripts in the first.

Scripts:
* mount/: Mount the chroot.
* chroot/: Chroot.
* umount/: Unmount the chroot.