[Bug 1745347] Re: landscape-common shows erroneous MOTD on install

2018-03-26 Thread Launchpad Bug Tracker
[Expired for landscape-client (Ubuntu) because there has been no
activity for 60 days.]

** Changed in: landscape-client (Ubuntu)
   Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745347

Title:
  landscape-common shows erroneous MOTD on install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1745347/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1745347] Re: landscape-common shows erroneous MOTD on install

2018-01-25 Thread Steve Langasek
This is the existing behavior of update-motd from the update-motd
package, unchanged since 2009, which does the following:

if run-parts --lsbsysinit /etc/update-motd.d > /var/run/motd.new; then
if mv -f /var/run/motd.new /var/run/motd; then
cat /var/run/motd
exit 0
else
echo "ERROR: could not install new MOTD" 1>&2
exit 1
fi
fi

So the update-motd command installs the new motd, and then cats it to
stdout.

landscape-common should not need to call update-motd as part of the
maintainer script, as the rest of the system is intended to ensure the
dynamic motd shown at login is always current.

** Changed in: update-notifier (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745347

Title:
  landscape-common shows erroneous MOTD on install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1745347/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1745347] Re: landscape-common shows erroneous MOTD on install

2018-01-25 Thread Andreas Hasenack
Can you try a reinstall of some of the other packages that have files in
that directory? For example, on my system:

$ dpkg -S /etc/update-motd.d/*
base-files: /etc/update-motd.d/00-header
base-files: /etc/update-motd.d/10-help-text
base-files: /etc/update-motd.d/50-motd-news
update-notifier-common: /etc/update-motd.d/90-updates-available
ubuntu-release-upgrader-core: /etc/update-motd.d/91-release-upgrade
update-notifier-common: /etc/update-motd.d/95-hwe-eol
update-notifier-common: /etc/update-motd.d/98-fsck-at-reboot
update-notifier-common: /etc/update-motd.d/98-reboot-required

If you install ubuntu-advantage-tools, I think you will get an ESM motd
as well. It won't display anything on ubuntu (as it's precise only), but
should place another file in that directory and may trigger this
behavior too.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745347

Title:
  landscape-common shows erroneous MOTD on install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1745347/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1745347] Re: landscape-common shows erroneous MOTD on install

2018-01-25 Thread Alan Pope 🍺🐧🐱 πŸ¦„
I actually did apt-get install landscape-common --reinstall to confirm
it was something triggered as part of that package install. So while it
might be something else landscape-common calls, it's definitely
landscape-common triggering it, not some other thing during my upgrade.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745347

Title:
  landscape-common shows erroneous MOTD on install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1745347/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1745347] Re: landscape-common shows erroneous MOTD on install

2018-01-25 Thread Andreas Hasenack
Hello,

I don't think what you saw came from landscape. The bit that landscape-
sysinfo spits out to the motd is this:

 System information disabled due to load higher than 2.0

I don't know why you got the whole motd during the package install as if
you had logged in, but the landscape bit is just that line above. The
rest comes from many different scripts in /etc/update-motd.d

Why all that got displayed mid-apt upgrade does sound wrong. Maybe the
bug got triggered by landscape because it does install a script in /etc
/update-motd.d. I'm adding a bug task for update-notifier.

** Also affects: update-notifier (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: landscape-client (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745347

Title:
  landscape-common shows erroneous MOTD on install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1745347/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs