I'm working on making an ISO image I can burn to a USB device as a live system. In order to install to the internal drive of the system that booted the live USB, I have an icon on the desktop to launch the installer.
After installation, I want to remove the icon. In order to do this, I was going to make a script that detected whether the system was running as a live USB or was actually installed. Is there a way to detect this from BASH?