s243a

run_sandbox.sh (rync example)

Nov 19th, 2020
771
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.24 KB | None | 0 0
  1. #!/bin/bash
  2. rm ./sandbox.out #For now I don't want to use the previous config.
  3. SB_PREFIX=/git/psandbox/psandbox-master.tar.gz.extracted/psandbox-master
  4. OS_HOME=$(realpath .)
  5. MP="/mnt/sdd2/"  
  6. mkdir -p "$MP"
  7. PSUBDIR="dpup/buster/32/PAE/8.0.0/RC2/28032020"
  8. OS_HOME="$MP/$PSUBDIR"
  9. LOGFILE="$(realpath "$OS_HOME/sandbox.log")"
  10. SAVE_HOME="/mnt/sdd3/dpup/buster/32/PAE/8.0.0/RC2/28032020"
  11. DEVX_HOME="/mnt/sdd3/dpup/buster/32/PAE/8.0.0/RC2/28032020"
  12. RW_LAYER="$SAVE_HOME/bustersave"
  13. B1_source="/Remote/jobs"
  14. B1_target="/Remote/jobs" #Sometimes I might get this folder via samaba isntead of a bind.
  15. mkdir -p "$RW_LAYER"
  16. #if [ -f ./sandbox.out ]; then
  17. #  bash -x "$SB_PREFIX"/usr/bin/psandbox.sh --logfile "$LOGFILE" -f "$OS_HOME"/sandbox.out -o "$OS_HOME"/sandbox.out --pdrv #"$MP" --maybe-psubdir "$PSUBDIR" -e "devx_fossapup64_9.5.sfs" --no-exit --rw-layer "$RW_LAYER" --copy-Xauth --bind-X11-#sockets --copy-resolv_conf --bind "$B1_source" "$B1_target"
  18. #
  19. #else
  20.   bash -x "$SB_PREFIX"/usr/bin/psandbox.sh --logfile "$LOGFILE" -o "$OS_HOME"/sandbox.out --pdrv "$MP" --maybe-psubdir "$PSUBDIR" -e "$DEVX_HOME/devx_buster_8.0.0.sfs" --no-exit --rw-layer "$RW_LAYER" --copy-Xauth --bind-X11-sockets --copy-resolv_conf --bind "$B1_source" "$B1_target"
  21. #fi
  22.  
Advertisement
Add Comment
Please, Sign In to add comment