I'm writing an install script for an appliance that modifies system config files under
/etc (amongst other things). How can I test this script non-destructively?
Ideally I would like to run the script in a pseudo-sandbox that provides a layer over the existing filesystem, and then see examine any changed files afterwards.
I'm not worried about the script being intentionally malicious, but would like to protect against system files being modified or deleted in any way.