From 94e462b926822217632849c875409271b32e420f Mon Sep 17 00:00:00 2001 From: Nikhil Jha Date: Feb 18 2020 04:35:36 +0000 Subject: everything technically works but is untested --- diff --git a/05-setup-user.sh b/05-setup-user.sh index e69de29..e789601 100644 --- a/05-setup-user.sh +++ b/05-setup-user.sh @@ -0,0 +1,10 @@ +set -e + +mkdir -p rootfs +mount $PP_PARTB rootfs +cp /usr/bin/qemu-aarch64-static rootfs/usr/bin +cp phone-scripts/* rootfs/root +chroot /tmp/root qemu-aarch64-static /bin/bash all.sh +# TODO: Not sure if this type of command can work. +umount $PP_PARTB +rmdir rootfs diff --git a/phone-scripts/all.sh b/phone-scripts/all.sh new file mode 100644 index 0000000..28f639d --- /dev/null +++ b/phone-scripts/all.sh @@ -0,0 +1 @@ +sh 01-create-sudo-user.sh \ No newline at end of file