John Prebbles in his book Mutiny says that Loch Lomond was composed - well, the lyrics were written - by and about a member of a Scottish regiment who took part in one of the several mutinies that occurred in - the early 1800s? - and was condemned to death as a result.
Prebble is more specific, but I have no idea what kind of sources or backing he has for his assertion ...