Move the logic that determines if a module needs to be signed to a script
and extend it to also check the signature-inclusion list of derivatives.
Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>