Debugging
Note: This note was originally in the Raspberry Pi, overlayfs read-write root, read-only NFS base post.
In trying to get the various options out there working I found a number of debugging strategies helpful, they're mostly simple -
First, set -v - put this after the #!/bin/