diff --git a/postinst b/postinst index c0dedd6e..c1164e9b 100755 --- a/postinst +++ b/postinst @@ -1,2 +1,4 @@ #!/bin/sh -systemctl restart systemd-binfmt +if [ -d '/run/systemd/system' ]; then + systemctl restart systemd-binfmt || : +fi