How can I determine within a shell script if the script is running:
- On a Ubuntu LiveOS (not necessarily version dependant) -- (already answered here)
- Within a chroot on an Ubuntu LiveOS (already addressed here)
- On a locally installed system (no LiveOS) -- (already answered here)
As all three points seem to be addressed elsewhere, I'm going to vote to close this question. Pointed out in the only answer here, a combination of tests can be used to determine chroot on LiveOS.