me.fier.chroot/readme.txt

17 lines
545 B
Plaintext
Raw Normal View History

2023-07-05 02:30:47 +00:00
Syntax: ./mfchroot [flags] <dir> [command] [arg 1] [arg 2] ...
2023-03-24 12:04:19 +00:00
2023-07-05 02:30:47 +00:00
Chroots into a directory, and optionally sets up additional things.
2023-03-24 12:04:19 +00:00
Flags:
2023-07-05 02:30:47 +00:00
* -m: Mount the chroot, but don't actually chroot into it.
2023-03-24 12:04:19 +00:00
* -u: Unmount the chroot, useful for copying, moving, deleting the chroot.
---
2023-07-05 02:30:47 +00:00
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.
2023-03-24 12:04:19 +00:00
2023-07-05 02:30:47 +00:00
Scripts:
* mount/: Mount the chroot.
* chroot/: Chroot.
* umount/: Unmount the chroot.