summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-01-09 17:43:43 +0100
committerFlorian Pritz <bluewind@xinu.at>2016-01-09 17:43:43 +0100
commit1b18a81a4a9b2ebe3a2b8e10571dee71da9b64bf (patch)
treed7854555daaddd1cdb67766f3336b7c76d32a360 /ch
parente9d04b9993f78e9126c0ac4bee984add5385a73d (diff)
downloadbin-1b18a81a4a9b2ebe3a2b8e10571dee71da9b64bf.tar.gz
bin-1b18a81a4a9b2ebe3a2b8e10571dee71da9b64bf.tar.xz
ch: add shell-bind command
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'ch')
-rwxr-xr-xch3
1 files changed, 3 insertions, 0 deletions
diff --git a/ch b/ch
index 11bb986..d0e536d 100755
--- a/ch
+++ b/ch
@@ -14,6 +14,8 @@
# ch list lists all existing master chroots
# ch shell <id> [command ...]
# spawn a shell/run command in a chroot
+# ch shell-bind <id> [command ...]
+# spawn a shell/run command in a chroot and bind $PWD from the host to /pwd in the chroot
# ch rshell <id> [command ...]
# spawn a shell/run command in the master chroot
# ch repack <id> ... repack (makepkg -R)
@@ -207,6 +209,7 @@ case $command in
done
;;
shell) chshell "$@";;
+ shell-bind) chshell --bind-ro="$PWD:/pwd" "$@";;
rshell) chrshell "$@";;
install) chinstall "$@";;
list)