6999 Commits

Author SHA1 Message Date
James Valleroy
36c5e22da4 freedombox Debian release 21.16
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmHBPGkACgkQd8DHXntl
 CAjA7g//eA7jiAOI9weYCdFAHDgAZ9QBzHj1/uO3kQj4qv3Qa5rQEw+9ckrQL6Ci
 RuH0j0WZLihJ7bzcy5fISwXX0Bu9uIjtYnuw5qpat09luNggnGwkHI0ETr8XBsj9
 CiESfHE0SxN415CGLWUdM3GnwQ5XxrWFBj7VYW06Ght5d89BSCh2nefpvNOhFIq6
 yZg20qWq9R3lNwpuBydABT0Cr3DzqyFcwQzP2r2/v2fdARvm2OXf3uwr119hWja7
 udhCaUqTGTl2EY0kasKw0t/l+TncRzIlpbTTbbOSeypqD2qeUMBzOzHJl/r+svRP
 yZXPOZY5DfVZO+OUpvBeynifXupesy6ddUT5LnYEcmWk+MntVqvELPeKuqxs8S+O
 FyoSz3m1K+rI+ch9SbOywDUa5vvMY4vysW1dnwBtVWsInAHdEzVhsQDLtI/LKX8Q
 Mzd6LdSJzv6SE4CUaqtf/WLTgdKe1E+oLVq7N1/9xqx4K+XWtTlhCFbsPFHMXpTm
 f2yI4aAldgH6ysRGgvFk/a43cDM9HvO5ayTla768+93bI2BeMwWZWo393FKPe6V8
 ZHbNJ8IYw2z7Ty57m74IK0ZsEpoGpOB8JD9fCH6JKHDniHEokv7cOrbvekqgGhbF
 3mqEUhk+M6rl0+SSHcTsOzJ2dGwArP09xvaj//8k/zm+kW3kkBA=
 =3+KM
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmHEumcACgkQd8DHXntl
 CAhJvBAAhQK0jxgOniCT79GDxrEkUzE5PzBEs1CMEsbl88KRY4mLz6gkr35uOQHW
 JcWnskaabdkKkDGKkYHkM0qcbqeNpStAVBAMBQfMZtLoOsZn79P0EpOU4VFkKV5q
 eQngLMM1WRgEmmLqCjXFWVmK6BXRF2D10MNTaWPeFEJdKpLKL7Vdi/0xO28y9JLf
 Gfm3eVAqvYfuwN64ujCre/Uw46FMYIQ7jp/68ja7hY8LEbPNYnimcui4ruKKyp1V
 mII0DG82WT0TYuGRwVH2MceAs2LeIwzO26idJt74Yfztmj7OQbg6aoKiphnHAFSk
 LFNvxhMuPTNG9TPer2x8qacaR+gTFR7sUqA+obv1prxDh9Z7mAJ56aeNYSVkrnWX
 BqbxY2kQO1cg9rAUB8gDTRBNywQ/KIHk5peyC2lf7+p0JAYKNE0VdZLXQnlwRWjF
 AlogLfhU07igRUFHxsX4MmmpHJgJnR6F0fpNMgtHxE3yyaEdVaZLpjUlfDCyXsCa
 eB4paC9Axzwjd1UZWAIpkTxd8r4LAwlP/ncdMp/MYCfY13MU4o8DodK6tWhzmhJp
 mtv/tesUJrAnSqx/Mc5QGJ0DtJtD8F2ye6Oxch2F1B4KF+US1eeeCpJ//gum0/xK
 xaWG5G92hwUU2+j9rSzT1qmvfQu16QskmwkzwHSzTCH0bni3L9k=
 =KjG8
 -----END PGP SIGNATURE-----

Merge tag 'v21.16' into debian/bullseye-backports

freedombox Debian release 21.16

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-23 13:05:25 -05:00
James Valleroy
00b5d1bf64
Release v21.16 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.16
2021-12-20 20:58:26 -05:00
James Valleroy
229d59066a
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-20 20:56:37 -05:00
James Valleroy
0a7b2fb6ec
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-20 20:44:17 -05:00
James Valleroy
fc2d5c8fea
pyproject: Add domain marker
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-12-20 16:08:47 -08:00
Joseph Nuthalapati
b0305746c8
tahoe-lafs: Drop app as it is not being used
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Add to configuration file removal in Debian package and setup.py]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-12-20 15:12:11 -08:00
Joseph Nuthalapati
621cb67527
diaspora: Drop app that was never finished.
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Add to configuration file removal in Debian package]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-12-20 15:11:29 -08:00
Joseph Nuthalapati
ce5274d9ee
monkeysphere: Drop app as it is not being used
Closes #2157.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Split diaspora and tahoe-lafs into separate commits]
[sunil: Remove monkeysphere from help/tests/test_views.py]
[sunil: Add to configuration file removal in Debian package and setup.py]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-12-20 15:09:50 -08:00
James Valleroy
f72505d300
upgrades: Add type annotations to action
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-12-20 13:46:53 -08:00
James Valleroy
32d9f01597
upgrades: Cleanup dist upgrade steps specific to bullseye release
- Skip handling of obsolete packages if there are none.

- Skip handling of debconf selections if none are required.

- Handle tt-rss same as other packages with prompts.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-12-20 13:46:50 -08:00
James Valleroy
690859b02f
upgrades: Refactor dist upgrade process
No change in functionality.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Fix copy/paste error with indentation in start_dist_upgrade_service]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-12-20 13:46:47 -08:00
pesder
41f5ccd80c
Translated using Weblate (Chinese (Traditional))
Currently translated at 17.2% (259 of 1498 strings)
2021-12-20 14:51:31 +01:00
Jiří Podhorecký
6f17901939
Translated using Weblate (Czech)
Currently translated at 100.0% (1498 of 1498 strings)
2021-12-20 14:51:31 +01:00
Eric
ab6c9bdd32
Translated using Weblate (Chinese (Simplified))
Currently translated at 71.2% (1067 of 1498 strings)
2021-12-20 14:51:29 +01:00
Michael Breidenbach
117d66584c
Translated using Weblate (Swedish)
Currently translated at 99.9% (1497 of 1498 strings)
2021-12-20 14:51:27 +01:00
pesder
697653ac86
Translated using Weblate (Chinese (Traditional))
Currently translated at 16.3% (245 of 1498 strings)
2021-12-18 22:57:10 +01:00
Jiří Podhorecký
fa1986e6fa
Translated using Weblate (Czech)
Currently translated at 81.9% (1227 of 1498 strings)
2021-12-18 22:57:09 +01:00
Eric
a92d5d81f8
Translated using Weblate (Chinese (Simplified))
Currently translated at 55.2% (827 of 1498 strings)
2021-12-18 22:57:06 +01:00
Coucouf
34e24b7d7a
Translated using Weblate (French)
Currently translated at 100.0% (1498 of 1498 strings)
2021-12-18 22:57:05 +01:00
Joseph Nuthalapati
102aaff2a2
tests: functional: Skip MLDonkey app
MLDonkey is currently not available in testing and not installable in
unstable. Attempting to install MLDonkey leaves dpkg in a broken state
which breaks other app installations as well.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
2021-12-17 13:33:25 +05:30
Sunil Mohan Adapa
d09fe5240b
datetime: Fix checking when timesyncd will run on a system
Fixes #2158.

When 'systemctl show' is used see the ConditionResult property, the value is
correct only when the unit has been started. When the unit is not running but
can run, ConditionResult has a value of 'no' leading to an incorrect result.

This in turn leads to _is_time_managed() returning incorrect value once the
service has been stopped. FreedomBox would have noted that daemon can be
enabled/disabled during startup while during attempts to enable it the action
script will think that service can't be enabled/disabled.

Fix this by using a better approach to detect when the service can run. Newer
versions of systemd (likely >=250) have the ability to run 'systemd-analzye
condition --unit=systemd-timesyncd.service' which have been ideal to detect
this. However, --unit option is not available in older versions. Use
systemd-virt-detect (part of systemd package) to detect for containers instead.

Tests:

- Boot the machine and run datetime functional tests

- User interface should not show enable/disable button for the app in container
but show in VM.

- Running first setup (after removing /var/lib/plinth/plinth.sqlite3) should
work on container and VM.

- Run above tests on a container and on a VM

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-16 07:44:13 -05:00
Sunil Mohan Adapa
ece2a1db33
email_server: Rename dovecot TLS configuration file for consistency
Tests:

- Configuration parameters are set properly after fresh app setup according to
'doveconf'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-14 18:22:57 -05:00
Sunil Mohan Adapa
9a8b57efd4
email_server: Adjust TLS configuration parameters
- Don't add TLS debugging information to Received: header.

- Drop unused fingerprint digest configuration. They are only used when
smtpd_tls_security_level is set to 'fingerprint' in which case certifying
authorities are ignored.

- Drop alterations to TLS low/high cipher lists. They are not used since
tls_ciphers are all set to 'medium'.

Tests:

- No configuration errors are reported by postfix in its logs after startup.

- 'postconf' shows that the new configuration parameters are set properly.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-14 18:22:54 -05:00
Sunil Mohan Adapa
e43e144040
email_server: Re-implement TLS configuration
- Use LetsEncrypt component to perform TLS certificate copying instead of custom
implementation.

- Use two components to copy the certificates to dovecot and postfix separately.

- Add support for multiple domains using SNI. Provide all the certificates. Use
primary domain's certificate as the fallback certificate.

- Drop the diagnose/repair approach due to its complexity.

Tests:

- Installing the app works. After installation, all TLS parameters are show as
expected by 'postconf' command and 'doveconf' command.

- A default domain is selected by default. This will reflect as primary domain
in TLS certificate configuration.

- When primary domain is changed, the configuration is updated to reflect the
default certificate path but SNI configuration is unchanged in dovecot and
postfix.

- Postfix and dovecot are restarted after setup.

- There are no configuration error shows in postfix/dovecot logs.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-14 18:22:51 -05:00
Sunil Mohan Adapa
4b024b269b
email_server: Fix issue with handling domain removal
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-14 18:22:48 -05:00
Sunil Mohan Adapa
4ec1e15fc1
email_server: Include postfix package in packages list
- Mostly for consistency. Will be useful when uninstall action is implemented.

Tests:

- Installation of email server app works without errors.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-14 18:22:45 -05:00
Sunil Mohan Adapa
aff62d4d85
letsencrypt: Handle cert setup when an app wants all domains
Currently, when domains is for an app's LE component is set as '*'. Calling
setup_certificates() results in copying certificate for the '*' domain instead
copying certificates for each of the domains on the system. Fix this by
implementing a special case where certificates are copied for all domains that
can have certificates.

Tests:

- Implement and run unit tests.

- Certificates are copied to /etc/{postfix,dovecot}/letsencrypt/ when email
server uses LE components with '*' for domains parameter.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-14 18:22:41 -05:00
Sunil Mohan Adapa
84f12d8633
roundcube: Allow upgrades using configuration file prompts
Closes: #2159.

Ship a separate Apache configuration file instead of editing the one provided by
roundcube package. This avoids configuration file prompt when roundcube package
needs to be upgraded.

Tests:

- Freshly install roundcube package 1.4.x (using apt preferences and Bullseye),
run functional tests and login to a gmail account.

- Freshly install roundcube package 1.5.x (from testing), run functional tests
and login to a gmail account.

- Install roundcube 1.4.x version on testing container without these changes.
After applying these changes, run 'apt update' while roundcube is enabled and
let FreedomBox upgrade roundcube to 1.5.x version. After this, run functional
tests and login to a gmail account.

- Repeat the previous test with upgrade while rouncube is disabled. Then enable
rouncube, run functional tests and login to gmail account.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-14 18:02:59 -05:00
Joseph Nuthalapati
57295ae893
ejabberd: Make name option in Signal handlers
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-11 17:27:20 -05:00
Joseph Nuthalapati
e19c9dbbbe
cockpit: Make 'name' optional in Signal handlers
Fixes #2154

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-11 17:27:11 -05:00
Joseph Nuthalapati
3bf9dac201
tests: Fix app name in pytest.skip statement
Removed a stray `$` character prepended to the app name.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-11 17:27:01 -05:00
James Valleroy
5d2f01a218
Release v21.15~bpo11+1 to bullseye-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.15_bpo11+1
2021-12-10 06:19:51 -05:00
James Valleroy
7bed7bfea3 freedombox Debian release 21.15
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmGupTgACgkQd8DHXntl
 CAhIxQ/9ErnBPnvyb/aNJVmxYi5xXJ521xMI2KfdmWipomayF8+31/P2DDz4rBEf
 Q1/f6xgWqtxhZho+XH0jtist99/AQKTCqc6zNv2tHfV2XwZqWaXANR4BQW5M2XfT
 3V5VEVhavH8obJmm9y+50g3NZnDx70GFnX5r9p4rS/6n5Iz5ZWBwuUq5BTtpp+1a
 GkwrFPlt4zYPHWMV4ZGDX5G6Xzr1Zwf5gJGBmLCd6a+wloV+3sxOcBOahNFqp+hK
 LOv1VTVlrJaa+5zcJ+DCMuMTiLtKp1CYxCKIX4I3A2DPkryYqFRIJAqLORhurz9Y
 q0iF3WnCYG1Srfb1MRCjRNfiYkm6TJF0v+5v33r/heU3nkM3jstRkLYdxE1IkUIy
 IPtPbpxxl55Ktc1AMvpV2y9yV4asRydBzID9zj8KoBD4lQ0VQJdLZNu0GYDJSEn5
 HJ8uFrUzL+2zwlRrvGHBndrmh+3N0j4R8sKnYL2xqMg1p1oDneufvAS5bQ1DknKb
 uHWNiI7Rvtz/btVPAhDdQ07DLt2TdlfWC5dlzYxRvmafL4Eba0/qEeP2FThdRt+e
 +0HmMPo9IL1wobXFuqkj5uHNJtPsv1PCkPYc2oEFzX8YTiooi7KqmBTQJssr6Aat
 Vx8m7veZByLby+2zFQ5ccwvMy/RlJX9ck83pFlqu+/G6/HfFMpk=
 =SnJ1
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmGzN6wACgkQd8DHXntl
 CAgW3xAAyOddaw/OB2oNeol/BViMXqTUG16ZzOXOoz4h+tu5zIdwgEx+0FMZAsBd
 +vhND6RmqRmtLEsi9791Xucz9rFpT3buK7vu71XpbYolg7nHFGiIiPK57gix3/z7
 DDeW/LUUxFOgMa54tHmgbmxfutl+ITxZFarEHBBlxOUKfozIaxfT0enexln6333+
 jiqin1LHqcjugLGVvP2rt4eOXlG2bQS2Dj5g2APLFn9KVFfxBS1pzpQvJX32ku2g
 LT40b33wsyypWoSt59bbROU185fKt76nzqCKSl1pXSMGQjypOfj7FxlbRgFGVSsY
 +Skrplkgj/uquyiX+sJK8Xf3V+rOnPW5vOictb8w/2/IiwOFHjshTFz7D1tnPAL6
 I4cbmGrnygDBhU5xSuI12YNshK3BR8n8b7qYE9YD2jExI0wK96v18R183eKWyM0K
 B4CkKiuEv0F2djeBXyzquAQk1WCrwzlggYb5RYqEBQAmbp0bphVE8kthOxAgwjY3
 I23jhzzruj297KpCfUGf/BG6sy2aQS23HAVuzeLWZXn6gNl0isWqgzr0psUkT9D9
 lVu6dzKlELAtdG6nXDCOIg1H6V8DPEfzjHaKsIeBItneS5fvKhBeXXesa3NLahhR
 iYl9OTgV7xz1O3q8r3i98ty95pyX8Z4JaNLYhbiID520Ek7gFvw=
 =ucZm
 -----END PGP SIGNATURE-----

Merge tag 'v21.15' into debian/bullseye-backports

freedombox Debian release 21.15

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-10 06:19:06 -05:00
James Valleroy
66e09cf04d
Merge remote-tracking branch 'freedombox-team/debian/bullseye-backports' into debian/bullseye-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-10 06:17:08 -05:00
Johannes Keyser
6816d2c87d
Translated using Weblate (German)
Currently translated at 100.0% (1498 of 1498 strings)
2021-12-09 13:50:34 +01:00
Burak Yavuz
ebff96af78
Translated using Weblate (Turkish)
Currently translated at 100.0% (1498 of 1498 strings)
2021-12-07 21:13:06 +01:00
James Valleroy
555f68e936
Release v21.15 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.15
2021-12-06 18:52:06 -05:00
James Valleroy
b71e6df209
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-06 18:51:10 -05:00
James Valleroy
7c54128cf8
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-06 18:36:00 -05:00
Sunil Mohan Adapa
b1740eee79
letsencrypt: On domain removal, don't revoke certificate, keep it
Closes: #2156.

Tests:

- Remove a domain from System -> Config, 'letsencrypt revoke' action is not
invoked.

- Triggering a manual revoke operation still leads to action getting triggered.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-06 18:25:20 -05:00
Sunil Mohan Adapa
4d73d7eb7f
email_server: Merge domain configuration with app view
Test:

- Submit the domain form unchanged. Message is printed that settings are
unchanged.

- Submit the domain form with changes. Message is printed that domain has been
updated. Configuration reflects the new domain.

- On page load, the current domain is shown in the domain configuration form.

- Clicking the repair button the service alert section triggers the repair
operations as seen in the console.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-06 17:39:55 -05:00
Sunil Mohan Adapa
ae882fea70
email_server: Simplify domain configuration form
- By default, receive mail for all the domains on the system.

- Allow user to select a primary domain. This domain is used for TLS
certificate, automatically adding domain to sender address, etc.

- Don't expose postfix configuration parameters.

Tests:

- On installation, the domain list populated in postfix. Primary domain is
the one set in the config module. If it is not set, any other domain from
configured domains is taken.

- When not installed, adding/removing domains does not cause errors.

- Changing the domain in the domain view works. mydomain has the primary domain
set. myhostname has primary domain set. mydestination has default values and in
addition has all the domains on the system.

- /etc/mailname is populated with the primary domain.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-06 17:39:43 -05:00
James Valleroy
b12a07229c
tests: Add 'domain' mark for apps that add/remove domains
Test:
- "py.test-3 --include-functional -m domain" tests the marked apps.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-12-05 11:00:41 -08:00
Johannes Keyser
9f7e97c4ae
Translated using Weblate (German)
Currently translated at 100.0% (1498 of 1498 strings)
2021-12-05 10:51:27 +01:00
Sunil Mohan Adapa
b5273cccf7
forms: Fix regression with TLS domain form in quassel and tt-rss
Without the change, the list of domains in the app pages for tt-rss and quassel
is empty.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-04 16:40:07 -05:00
Sunil Mohan Adapa
224cbe51c5
doc/dev: Drop reference to module level depends declaration
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-04 16:39:57 -05:00
Sunil Mohan Adapa
019a785cc3
*: Drop module level depends declaration
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-04 16:39:49 -05:00
Sunil Mohan Adapa
603b63bbac
module_loader, app: Move app init to app module
- Don't try to get the depends from module level and sort modules based on that.

- Instead after all App instances are created, sort the apps based on
app.info.depends and app.info.is_essential.

- Print message that apps have been initialized instead of printing before they
are initialized. The correct order of apps is only known after they have been
initialized and sorted.

- Avoid circular import on module_loader and setup.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-04 16:39:40 -05:00
Sunil Mohan Adapa
3421469825
setup: Work on apps instead of modules for force upgrade
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-04 16:39:33 -05:00
Sunil Mohan Adapa
b9dc2d38f6
setup: Use apps instead of modules to determine running first setup
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-04 16:39:22 -05:00