Custom Installer Modules for ALG aim to add additional functionality to the installer specific to ALG. The modules are to be installed in the same directory as other modules, which is etc/calamares
. For prototyping, the modules will first be written in python, and then C++/Qt when the features are finalised.
Tests are now in /tests.
Run tests with PYTHONPATH=./src python3 -m unittest discover -s tests
Ideally, modules are invoked in settings.conf
. Some modules have a dependency on the other, for example, packages_remover will work correctly if it has GS values from hardware_detection. Hence it totally makes sense to call hardware_detection before packages_remover.
Currently there are certain script in ALG's code that reside in /usb/local/bin, which are run by calamares shellprocess. These have to be migrated here.
UPDATE: A module for choosing editions has been made that will pass values to packages_remover. However some functions still need to be rewritten depending on the results from the bare-metal tests.