Azure / iot-identity-service

Source of the Azure IoT Identity Service and related services.
MIT License
37 stars 46 forks source link

Debian postrm script fails to execute purge command when run inside systemd-nspawn container #531

Closed msqr closed 1 year ago

msqr commented 1 year ago

The Debian package script fails to execute when run inside a systemd-nspawn container. It fails here:

https://github.com/Azure/iot-identity-service/blob/7aa53d0443eefb910954df1a8ef124170cfb73c3/contrib/debian/postrm#L23

This is a similar problem as Azure/iotedge#7027. Switching to something like

systemctl daemon-reload 2>/dev/null || true

fixes the issue.

arsing commented 1 year ago

Yes, I don't see any problem with ignoring a failure from daemon-reload. I do wonder if we need it at all, or if the default control script would've already called it for us before this point.