[Bug 2077869] Re: systemd.postinst wants to restart masked systemd-binfmt.service
Nick Rosbrook
2077869 at bugs.launchpad.net
Thu Oct 10 18:41:49 UTC 2024
The error is not fatal though, right? Because we have the || true? So
this is just a cosmetic thing?
** Changed in: systemd (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2077869
Title:
systemd.postinst wants to restart masked systemd-binfmt.service
Status in systemd package in Ubuntu:
Incomplete
Bug description:
It is possible that the postinst is going to trigger a restart of
systemd-binfmt.service. Take a look at this section of
systemd.postinst
_update_binfmt() {
_systemctl restart systemd-binfmt.service || true
}
# Update Message Catalogs database and binfmt registrations in response to dpkg triggers
if [ "$1" = "triggered" ]; then
shift
for trigger in $@; do
case $trigger in
/usr/lib/systemd/catalog)
_update_catalog an
;;
/usr/lib/binfmt.d)
_update_binfmt
;;
esac
done
exit 0
fi
It happened to me when I create a Incus Ubuntu noble container from an
older image (2024-05-30) and then simply did a "apt update" plus "apt
dist-upgrade" in the container.
I'm getting
Failed to restart systemd-binfmt.service: Unit systemd-binfmt.service
is masked.
I'm not getting that error when I launch from the latest Incus image.
So something might depend on other things.
Nevertheless, the postinst should not even try to restart a service
that is masked.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2077869/+subscriptions
More information about the foundations-bugs
mailing list