onion_knight via Whonix Forum:
root@host:~# dpkg-query -L calamares-settings-debian
apt-file list calamares-settings-debian
Yes, we need a basic understanding of these files file by file. See what we can leave out and see what we need to emulate.
For example /etc/apt/sources.list handling is already done by Whonix and /usr/sbin/sources-final etc. can cause issues or needs to be disabled.
But now I am thinking, maybe a cleaner option would be to get rid of
Very, very worthwhile to consider.
and create a package
calamares-settings-whonix instead with our own configuration files?
Yes. Either a new package
calamares-settings-whonix or existing package
calamares-settings-whonix is slightly cleaner but yet another package. Maybe justified by the complexity of this. Has an advantage if someone later wants to implement Whonix Host VirtualBox.
Is there some way we could reuse that
calamares-settings-whonix package also for “hardened debian”? Some more generic name?
On the other hand
/usr/lib/calamares/modules/bootloader-config folders contains sufficient complexity which we don’t want to understand in detail / maintain / update/compare from buster+1 release upgrade.
Hard decision. On first sight it looks like in this case it is better to curb the
I could config-package-dev
/etc/calamares/branding/debian/branding.desc. (May not even be required, see below.) (Or all files in /etc/calamares/branding/ folder although may not be necessary.)
/etc/calamares/settings.conf could change
branding: debian to
branding: whonix (or more generic name).
Or if we don’t need to make any changes to
/etc/calamares/settings.conf besides that we could instead config-package-dev
/etc/calamares/branding/debian/branding.desc with our own config.
There is probably no need to curb files such as
/etc/calamares/branding/debian/debian-logo.png if our forked “
/etc/calamares/branding/debian/branding.desc” no longer uses string
debian-logo.png but rather our own image.
Summary best way forward as far as I can see for now:
/etc/calamares/branding/debian/branding.desc and Whonix branding images to package
whonix-base-files. (“hardened debian” can later use its own branding.)
- Create a new package
calamares-settings-dist (generic name, later erusable by “hardened debian”). (Or just the files and folders. I can add the /debian folder soon after.) Add any non-branding file we need to modify there.
- If you want to overwrite a file owned by
calamares-settings-debian: just add it to the package. I will add a config-package-dev
- If you want to remove a file owned by
calamares-settings-debian: just let me know. I will add a config-package-dev