From 299743722f9c435564bd6529c539e4c5f963290b Mon Sep 17 00:00:00 2001 From: Dan Puttick Date: Wed, 9 Aug 2017 16:05:27 -0400 Subject: [PATCH] Add shell_utils/start_proot.sh --- shell_utils/start_proot.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 shell_utils/start_proot.sh diff --git a/shell_utils/start_proot.sh b/shell_utils/start_proot.sh new file mode 100755 index 0000000..9ecf4ca --- /dev/null +++ b/shell_utils/start_proot.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# This script runs proot on a mounted image with the proper parameters. +# The root partition should be at /mnt/rpi-root /mnt/rpt-boot +# You should probably run something like basic_mount_image.sh first + +set -e +set -x + +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" 1>&2 + exit 1 +fi + +sudo proot -q qemu-arm -S /mnt/rpi-root -b /mnt/rpi-boot:/boot /bin/bash