Comment 10 for bug 1840956

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: package qemu-user-static 1:3.1+dfsg-2ubuntu3.3 failed to install/upgrade: installed qemu-user-static package post-installation script subprocess returned error exit status 2

BTW I checked the usual container checks and we have:
$ systemd-detect-virt
wsl

$ systemd-detect-virt --container
wsl
$ echo $?
0

So those could be used here instead of the old test that doesn't catch WSL (and probably other containers).
Or to avoid that there might be containers that support this we can make the register call "ok to fail".
But that might hide issues on other environments.
Maybe "ok to fail" if in container ...

I'd need to check the old discussions adding the non-working container check for more details.