Man, am I the greatest
This commit is contained in:
parent
696dcd1d27
commit
0b4e7f9185
13 changed files with 163 additions and 163 deletions
|
@ -1,17 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
ROOT=""$HOME"/Documents/Miscellaneous/alpchroot"
|
||||
ROOT="${HOME:-/home/amolinae}/Documents/Miscellaneous/alpchroot"
|
||||
|
||||
case "$1" in
|
||||
"") echo "usage: bwroot ARGUMENT" >&2; exit 1; ;;
|
||||
case "$1" in
|
||||
*)
|
||||
bwrap \
|
||||
--bind "$ROOT" / \
|
||||
--bind /proc /proc \
|
||||
--dev-bind /dev /dev \
|
||||
--bind "$PWD" "$PWD" \
|
||||
--bind "$HOME" "$HOME" \
|
||||
--unshare-all \
|
||||
--share-net \
|
||||
"$@" ;;
|
||||
esac
|
||||
--bind "$ROOT" / \
|
||||
--bind /proc /proc \
|
||||
--bind /sys /sys \
|
||||
--dev-bind /dev /dev \
|
||||
--bind "$PWD" "$PWD" \
|
||||
--bind "$HOME" "$HOME" \
|
||||
--unshare-all \
|
||||
--share-net \
|
||||
"$@" ;;
|
||||
"") echo "usage: bwroot ARGUMENT" >&2; exit 1; ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue