Easily scriptable chroots
Go to file
2023-03-24 13:04:19 +01:00
chroot.py Initial commit 2023-03-24 13:04:19 +01:00
readme.txt Initial commit 2023-03-24 13:04:19 +01:00

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

Chroots into a directory, and keeps it mounted.

Flags:
* -u: Unmount the chroot, useful for copying, moving, deleting the chroot.

---

Scripts are sourced from '$scriptdir/scripts/*', and then '$chroot/opt/me.fier.chroot/*'

Scripts (Draft, TODO!):
* premount/*.py: Ran before directories are mounted/unmounted.
* mount/*.py: Ran after mounted.
* umount/*.py: Ran after unmounting.