[Pkg-utopia-maintainers] Bug#978935: Bug#978935: network-manager: disconnect on upgrade

Vincent Lefevre vincent at vinc17.net
Fri Jan 1 15:05:11 GMT 2021


On 2021-01-01 15:12:06 +0100, Michael Biebl wrote:
> Am 01.01.21 um 14:55 schrieb Vincent Lefevre:
> > On 2021-01-01 12:58:48 +0100, Michael Biebl wrote:
> > > Am 01.01.21 um 01:19 schrieb Vincent Lefevre:
> > > > The name of the active connection could be stored in a file, so that
> > > > a reexec'ed daemon could pick the information. By active connection,
> > > > I mean the last connection chosen by the user, under the condition
> > > > that the user has not explicitly disconnected.
> > > 
> > > It's not that simple, unfortunately. There is much more state,
> > > especially in external daemons like wpasupplicant.
> > 
> > The name of the active connection and the associate device is shown
> > by "nmcli connection". This is everything what one needs to know.
> > I just had to do "nmcli device wifi connect <SSID>" to reconnect.
> 
> That is something different. This stops your connection when NetworkManager
> stops and starts it again, when NetworkManager starts.

But much better than the current behavior, where NetworkManager
remains disconnected. The small time when there is no connection
should not affect the system (a loss of connection can happen at
any time).

> That's basically what's happening today for WiFi connections, if they are
> marked as autoconnect.

No, that's not the same thing. Connections marked as autoconnect
are automatically enabled even when the user hasn't requested the
connection explicitly, e.g. at boot time. Here this would be an
automatic reconnection, i.e. for a connection that hasn't been
disabled by the user.

> > > > > Ethernet connections should not be torn down on a daemon stop.
> 
> > > The alternative of not restarting NM on upgrades isn't great either.
> > 
> > This could be another solution, asking the user to do that when safe.
> > This would not be the only case where a service is not restarted
> > automatically (there's udev).
> 
> udev is restarted on upgrades.

Sorry, I meant dbus
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777691#15
for the reference).

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-utopia-maintainers mailing list