I would like to make a special boot option in grub2. When this boot option is selected as a boot target, it will mount as read only (instead of the normal read/write mode), and run a script that doesn't normally run when the system is booted with the normal grub boot option. Any idea on how can I do this?
I would prefer a solution that works with Ubuntu 18.04 server edition, but that's not a requirement, if there is a solution for any distribution whatsoever, I would like to read about it.