Public bug reported:

The lxd-agent-loader package has logic to enable the `lxd-agent.service`
in early boot if the right DMI board is found.

Since DMI is not available on all arches (like s390x), a udev based
fallback should be used. To avoid installing the udev fallback rules
where not needed, the debian/install file was turned into a script:

```
#!/usr/bin/dh-exec
lxd-agent.service usr/lib/systemd/system/
lxd-agent-generator usr/lib/systemd/system-generators/
lxd-agent-setup usr/lib/systemd/
# udev rules are only needed on arches lacking DMI support
[!amd64 !arm64 !armhf] 99-lxd-agent.rules usr/lib/udev/rules.d/
```

The problem is that since the package is `Architecture: all`, it only
gets build on amd64 and the same .deb is served to all arches. This
leads to this unfortunate situation of the package not including the
udev rules:

```
# uname -m
s390x
# dpkg -l| grep lxd-agent-loader
ii  lxd-agent-loader                  0.12ubuntu0                               
 all          LXD - VM agent loader
# dpkg -L lxd-agent-loader 
/.
/usr
/usr/lib
/usr/lib/systemd
/usr/lib/systemd/lxd-agent-setup
/usr/lib/systemd/system
/usr/lib/systemd/system/lxd-agent.service
/usr/lib/systemd/system-generators
/usr/lib/systemd/system-generators/lxd-agent-generator
/usr/share
/usr/share/doc
/usr/share/doc/lxd-agent-loader
/usr/share/doc/lxd-agent-loader/changelog.gz
/usr/share/doc/lxd-agent-loader/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/lxd-agent-loader
```

** Affects: lxd-agent-loader (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  lxd-agent doesn't start on non-DMI arches due to missing fallback udev
  rules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd-agent-loader/+bug/2144337/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to