postinst has been calling update-motd since at least 2009. I don't know if udpate-motd's behavior changed since then, but this is causing the landscape-sysinfo output to be displayed on package upgrade or reinstall. And only landscape-sysinfo, not any of the other scripts' output (from /etc/udpate-motd.d).
The update-motd(8) manpage states:
NAME
update-motd - immediately update the dynamic MOTD and print it to stdout
This "stdout" component is not desired in the package maintainer script. We should either suppress it, or perhaps better, not use update-motd in the maintainer scripts and find some other way to update the sysinfo cache on install/upgrade.
Related to this, look what I found while testing it...
https:/ /bugs.launchpad .net/ubuntu/ +source/ landscape- client/ +bug/1855544
postinst has been calling update-motd since at least 2009. I don't know if udpate-motd's behavior changed since then, but this is causing the landscape-sysinfo output to be displayed on package upgrade or reinstall. And only landscape-sysinfo, not any of the other scripts' output (from /etc/udpate- motd.d) .
The update-motd(8) manpage states:
NAME
update-motd - immediately update the dynamic MOTD and print it to stdout
This "stdout" component is not desired in the package maintainer script. We should either suppress it, or perhaps better, not use update-motd in the maintainer scripts and find some other way to update the sysinfo cache on install/upgrade.