A simple chroot CLI utility made in python that starts up a REPL for traversing the chroot
Motivation
I wanted to see if I could make a proper chroot interface/shell in Python as I knew how to do the fundamental workflow on their own (i.e. individual functions to chroot into the system, print and exit)
The thought of making a cross-platform chroot utility came to mind, hence the project idea
The more I wrote, I somehow ended up with a REPL and I guess a working (albeit incredibly lackluster) shell
Demo
Setup
Dependencies
python
Pre-Requisites
Documentations
Synopsis/Syntax
py-chroot {options} <arguments>
Parameters
Positionals
Optionals
With Arguments
-p | --prompt [custom-prompt] : Specify the custom string you wish to set as your REPL/shell prompt
Type: String
Notes
Ensure that you wrap your string with a single quote ('your-string') to ensure that none of the string gets executed on boot time
Format: `-p '"your-string"'
-r | --root [root-directory] : Specify the target root directory within the root filesystem to jump into
Type: String
-m | --mount [rootfs-mount-path] : Specify the target root filesystem mount path to chroot into