Updating rootfs README, and moving up timestamp file
Having timestamp file written before the bash shell is brought up
allows us to check it before completing the image
Change-Id: Iae18dded2ed95c4ad71b1cf977bdf9e1dd405e8d
Signed-off-by: Jim Ostrowski <yimmy13@gmail.com>
diff --git a/frc971/raspi/rootfs/make_sd.sh b/frc971/raspi/rootfs/make_sd.sh
index 81f7727..3b73a32 100755
--- a/frc971/raspi/rootfs/make_sd.sh
+++ b/frc971/raspi/rootfs/make_sd.sh
@@ -32,15 +32,15 @@
target /root/bin/change_hostname.sh "${1}"
fi
-echo "Starting a shell for any manual configuration"
-target /bin/bash --rcfile /root/.bashrc
-
# Put a timestamp on when this card got created and by whom
TIMESTAMP_FILE="${PARTITION}/home/pi/.DiskFlashedDate.txt"
date > "${TIMESTAMP_FILE}"
git rev-parse HEAD >> "${TIMESTAMP_FILE}"
whoami >> "${TIMESTAMP_FILE}"
+echo "Starting a shell for any manual configuration"
+target /bin/bash --rcfile /root/.bashrc
+
# Found I had to do a lazy force unmount ("-l" flag) to make it work reliably
sudo umount -l "${PARTITION}"
rmdir "${PARTITION}"