15 lines
448 B
Plaintext
15 lines
448 B
Plaintext
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. |