Thanks for the additional details and for the improved reproducer. I can reproduce the issue and looks like the steps you identified are right. I assume this worked at some point, but the issue is also present in Focal and Bionic.
I don't think this is working as expected, OTOH the RequiredBy= (and, in earlier releases, Before=) systemd dependencies come from the upstream project [1], where I see no bug reports about this issue (not even closed ones). Same goes for Debian: no bugs about this.
I am going to triage this as a bug, however to speed things up I suggest filing an upstream bug [2]. Given that the nbd@. units come from there, the upstream devs may be able to help. @Thiago would you be willing to do so? Thanks!
Thanks for the additional details and for the improved reproducer. I can reproduce the issue and looks like the steps you identified are right. I assume this worked at some point, but the issue is also present in Focal and Bionic.
I don't think this is working as expected, OTOH the RequiredBy= (and, in earlier releases, Before=) systemd dependencies come from the upstream project [1], where I see no bug reports about this issue (not even closed ones). Same goes for Debian: no bugs about this.
I am going to triage this as a bug, however to speed things up I suggest filing an upstream bug [2]. Given that the nbd@. units come from there, the upstream devs may be able to help. @Thiago would you be willing to do so? Thanks!
[1] https:/ /github. com/NetworkBloc kDevice/ nbd/ /github. com/NetworkBloc kDevice/ nbd/issues /github. com/NetworkBloc kDevice/ nbd/tree/ master/ systemd
[2] https:/
[3] https:/