On Mon, 08 May 2017 at 11:16:48 +0200, Pim van den Berg wrote:
> As you can see ceph assumes our init system is sysvinit in stretch, while it
> is systemd.

No, our init system is "either sysvinit or systemd, or maybe even Upstart".
get_init_system() in reportbug's reportbug.utils demonstrates how to detect
which one we're dealing with.

(In particular, /run/systemd/system is the canonical way to probe for
a system where systemctl can be expected to work.)

>          debian_codenames = {
> +            '9': 'stretch',

The codenames for what will become Debian 10 (buster) and Debian 11
(bullseye) are already known, precisely to be able to avoid this sort
of bug. However, if what Ceph really wants to know is a fact like
"what is the init system?", it should be probing for the init system,
not going via the OS vendor and version.

    S

Reply via email to