16 lines
298 B
Bash
Executable file
16 lines
298 B
Bash
Executable file
#!/bin/sh
|
|
|
|
ROOT=""$HOME"/Documents/alpchroot"
|
|
|
|
case "$1" in
|
|
"") echo "usage: bwroot ARGUMENT" >&2; exit 1; ;;
|
|
*)
|
|
bwrap \
|
|
--bind "$ROOT" / \
|
|
--bind /proc /proc \
|
|
--dev-bind /dev /dev \
|
|
--bind "$PWD" "$PWD" \
|
|
--bind "$HOME" "$HOME" \
|
|
--unshare-all \
|
|
"$@" ;;
|
|
esac
|