Summarizing the low hanging fruits here:
- Add caching to 50-landscape-sysinfo
- Add caching to 95-hwe-eol
- /usr/lib/update-notifier/update-motd-hwe-eol calls apt-config multiple times.
consider reducing those calls
- 91-release-upgrade unconditionally calls lsb_release which is expensive.
Use the same check others use
The rest already uses caching AND/OR is small, fast and simple.
The follow on of making pam_motd truly not do anything on non-interactive can then be a follow on case and would no more be that important.
For these fixes three packages need to be touched:
Source: ubuntu-release-upgrader
Source: update-notifier
Source: landscape-client
Summarizing the low hanging fruits here: sysinfo update- notifier/ update- motd-hwe- eol calls apt-config multiple times.
- Add caching to 50-landscape-
- Add caching to 95-hwe-eol
- /usr/lib/
consider reducing those calls
- 91-release-upgrade unconditionally calls lsb_release which is expensive.
Use the same check others use
The rest already uses caching AND/OR is small, fast and simple.
The follow on of making pam_motd truly not do anything on non-interactive can then be a follow on case and would no more be that important.
For these fixes three packages need to be touched: release- upgrader
Source: ubuntu-
Source: update-notifier
Source: landscape-client