I can confirm this is happening in disco.

I believe the issue is a conversion from sysv to systemd. The sysv script has 
this bit:
if [ "x$RUN" != "xyes" ] ; then
    log_failure_msg \
    "$NAME disabled, please adjust the configuration to your needs " \
    "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
    exit 0
fi

The RUN variable is defined in /etc/default/ipmidetectd and defaults to
"no", so, in a sysv-only system, that would just output the message
above and exit 0, without failing.

The systemd job, however, doesn't seem to account for that. It sources the 
default file, but does nothing about the RUN 
variable:root@disco-freeipmi:/var/log# cat 
/lib/systemd/system/ipmidetectd.service
[Unit]
Description=IPMI Node Detection Monitoring Daemon
After=network.target

[Service]
Type=forking
EnvironmentFile=-/etc/default/ipmidetectd
ExecStart=/usr/sbin/ipmidetectd $OPTIONS

[Install]
WantedBy=multi-user.target

Therefore it tries to start, but without a valid configuration, fails.


** Changed in: freeipmi (Ubuntu)
       Status: Incomplete => Triaged

** Summary changed:

- package freeipmi-ipmidetect 1.5.7-2ubuntu1 failed to install/upgrade: 
installed freeipmi-ipmidetect package post-installation script subprocess 
returned error exit status 1
+ freeipmi-ipmidetect postinst fails on default install

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

Title:
  freeipmi-ipmidetect postinst fails on default install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freeipmi/+bug/1808637/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to