[Bug 1979543] [NEW] invoke-rc.d: syntax error: unknown option "--skip-systemd-native"

Corey Bryant 1979543 at bugs.launchpad.net
Wed Jun 22 14:59:00 UTC 2022


Public bug reported:

On bionic, the --skip-systemd-native flag is not available by default
for invoke-rc.d.

This can be seen by installing nova-api-metadata from the ussuri cloud archive:
sudo add-apt-repository cloud-archive:ussuri
sudo apt install nova-api-metadata

This is coming from the postinst (and prerm) scripts:
# grep -r skip-systemd
nova-api-metadata.postinst:             invoke-rc.d --skip-systemd-native nova-api-metadata $_dh_action || true
nova-api-metadata.prerm:        invoke-rc.d --skip-systemd-native nova-api-metadata stop || true

Related Lintian warning:
https://lintian.debian.org/tags/skip-systemd-native-flag-missing-pre-depends

--skip-systemd-native
Exits before doing anything if a systemd environment is detected and the requested service is a native systemd unit.  This is useful for maintainer scripts that want to defer systemd actions to deb-systemd-invoke(1p)

To work around this warning:
sudo apt install init-system-helpers

I think the fix is to add a Pre-Depends as the Lintian describes,
however I believe this has been this way all along and considering the
line ends with "|| true" it is probably not an issue.

** Affects: cloud-archive
     Importance: Low
         Status: Triaged

** Changed in: cloud-archive
       Status: New => Triaged

** Changed in: cloud-archive
   Importance: Undecided => Low

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

Title:
  invoke-rc.d: syntax error: unknown option "--skip-systemd-native"

Status in Ubuntu Cloud Archive:
  Triaged

Bug description:
  On bionic, the --skip-systemd-native flag is not available by default
  for invoke-rc.d.

  This can be seen by installing nova-api-metadata from the ussuri cloud archive:
  sudo add-apt-repository cloud-archive:ussuri
  sudo apt install nova-api-metadata

  This is coming from the postinst (and prerm) scripts:
  # grep -r skip-systemd
  nova-api-metadata.postinst:             invoke-rc.d --skip-systemd-native nova-api-metadata $_dh_action || true
  nova-api-metadata.prerm:        invoke-rc.d --skip-systemd-native nova-api-metadata stop || true

  Related Lintian warning:
  https://lintian.debian.org/tags/skip-systemd-native-flag-missing-pre-depends

  --skip-systemd-native
  Exits before doing anything if a systemd environment is detected and the requested service is a native systemd unit.  This is useful for maintainer scripts that want to defer systemd actions to deb-systemd-invoke(1p)

  To work around this warning:
  sudo apt install init-system-helpers

  I think the fix is to add a Pre-Depends as the Lintian describes,
  however I believe this has been this way all along and considering the
  line ends with "|| true" it is probably not an issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1979543/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list