Systemd sysv install fails with update-rc.d: error: unable to read /etc/init.d/enable

Bug #1752882 reported by Chris Glass on 2018-03-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Critical
Dimitri John Ledkov

Bug Description

The bionic builds of cloud images for one of our partners fails when installing/enabling NTP in the image during livecdrootfs build:

+ chroot mountpoint_gce systemctl --root / enable ntp.service
Synchronizing state of ntp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install --root=/ enable ntp
update-rc.d: error: unable to read /etc/init.d/enable

On Xnox's request I am filing a bug here and assigning to him.

Please let me know if you need further information.

Changed in systemd (Ubuntu):
assignee: nobody → Dimitri John Ledkov (xnox)
importance: Undecided → Critical
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package systemd - 237-3ubuntu4

---------------
systemd (237-3ubuntu4) bionic; urgency=medium

  * systemd-sysv-install: fix name initialisation.
    Only initialise NAME, after --root optional argument has been parsed, otherwise
    NAME is initialized to e.g. `enable', instead of to the `unit-name`, resulting
    in failures. (LP: #1752882)

 -- Dimitri John Ledkov <email address hidden> Mon, 05 Mar 2018 09:57:58 +0100

Changed in systemd (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers