I'm making a file manager system for managing my projects. My package is named filesystem. I need a config file that stores the path to the root of my file system.
I think I need to create a file /etc/filesystem/root.conf and add it to DEBIAN/conffiles. If the file doesn't exist I want to prompt the installer for a root directory. Else I want to keep the root directory the same (for example when upgrading).
I think the prompt should be in postinst.
Should I add the file to conffiles?
Should I add the prompt in postinst?
How do I add an option to apt install that forces a prompt? (I have read about --force-confnew)
I need the file to be deleted in apt purge.