Easily scriptable chroots
Go to file
Fierelier 7a4a6f32d9 Add all-pre and all-post (mod mount/umount points) 2024-07-01 02:08:09 +02:00
scripts Add all-pre and all-post (mod mount/umount points) 2024-07-01 02:08:09 +02:00
.gitignore Big update 2023-07-05 04:30:47 +02:00
mfchroot Add all-pre and all-post (mod mount/umount points) 2024-07-01 02:08:09 +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.