Skip to content

device: don't enforce IP cleanup on deactivating state

With NetworkManager 1.48, pre-down scripts are unable to access the network anymore, making it impossible to un-mount nfs mounts.

To reproduce this, simply create a pre-down script with the following content in /etc/NetworkManager/dispatcher.d/pre-down.d/pre-down-test.sh

#!/usr/bin/env bash

ping -c 1 gitlab.freedesktop.org

Run nmcli connection down $your_connection_name, and you'll find the following error in journalctl -b.

nm-dispatcher[38816]: ping: gitlab.freedesktop.org: Temporary failure in name resolution

This was reported in this openSUSE bug.

Merge request reports

Loading