On Mon, 25 Mar 2019 12:01:02 +0100 Laurent Bigonville <bi...@debian.org>
wrote:
>
> An option might be to create an empty file in the postinst script on the
> first installation. An empty file will cause the "alsa restore" command
> to fail with return code 99 but the systemd service will still be marked
> as "active (exited)" and the ExecStop will be executed on shutdown
> meaning that the volume will be saved. (Wouldn't that cause issue with
> some setup?)
The more obvious solution would of course be to remove the condition in
the .service file