For this I honestly see no risks of regressions for nfs-server.

Also, be aware that on systems using DHCP depending on network.target or
network-online.target has the same effect simply due to the inherent
ordering of DHCP packets not passing through until the interface is able
to pass traffic.

When using static addressing it's essential that things that require
networking to be able to handle traffic do depend on the correct thing,
and that's network-online.target

Regarding the "my system hangs on boot" comment:

1) nfs-server is a server service, it's not something you run on a laptop or 
somesuch and expect things to work without networking.
2) Network startup has a timeout, so the system will boot eventually.

Do remember that one of the appealing things about Ubuntu/Debian is the
main goal of services to "just work", and the most basic thing here must
be to get at least the dependencies right for things to work in the
common usecase for which the service is intended.

As a final note on nfs-server.service:

It currently does two things: Start the nfs-server and do exportfs. It's
the latter that depends on network-online, so the startup could be split
into two services with tailored dependencies.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1918141

Title:
  nfs-server.service needs name resolution and network online

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1918141/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to