~danilogondolfo/network-manager/+git/ubuntu-1:preinst_script_fix

Last commit made on 2023-06-01
Get this branch:
git clone -b preinst_script_fix https://git.launchpad.net/~danilogondolfo/network-manager/+git/ubuntu-1
Only Danilo Egea Gondolfo can upload to this branch. If you are Danilo Egea Gondolfo please log in for upload directions.

Branch merges

Branch information

Name:
preinst_script_fix
Repository:
lp:~danilogondolfo/network-manager/+git/ubuntu-1

Recent commits

8904f74... by Danilo Egea Gondolfo

Changelog

781778e... by Danilo Egea Gondolfo

d/network-manager.postinst: fix netplan migration logic

The "continue" is being executed in a subshell so it's not skipping the
next commands. It will fail if Network Manager is not running. See LP: #2022023

943ed73... by Danilo Egea Gondolfo

d/network-manager.preinst: use /var/lib/NetworkManager for backups

/root is not a system directory so we shouldn't use it. It might not
even exist or the package manager might run in a sandbox and not have
access to it. See LP: #2021937

a658949... by Danilo Egea Gondolfo

Update changelog

d3c4d83... by Danilo Egea Gondolfo

d/t/nm_netplan.py:openvpn: set a metric for the extra default route

With a higher metric the route shouldn't be selected over the main one.
Also, use the same subnet already used by the nm.py tests.

4d93125... by Sebastien Bacher

releasing package network-manager version 1.42.4-1ubuntu3

bcd4341... by Lukas Märdian

Update changelog

6c8b795... by Lukas Märdian

d/network-manager.postinst: Trigger Netplan migration on install/upgrade

(LP: #2010561)

f604ceb... by Lukas Märdian

d/network-manager.preinst: backup previous configuration automatically

e64a9a5... by Danilo Egea Gondolfo

d/t/nm_netplan.py: Add autopkgtests for the netplan integration

nm_netplan.py creates connections through the Python library. It adds
a lot of boilerplate when implementing tests though. Might be better to
just call nmcli.

- Add test to create, change and delete a tap device
- Add few more tests
  Also add some support code to handle NetworkManager between tests.
- Delete interfaces if they still exist
  It seems that sometimes after deleting a connection, an interface might
  linger around for some reason.
- Add few more tests
- d/t/nm_netplan.py: improve formating
  Remove spaces, empty lines, rename the test file to have a lower
  priority when parsed and remove all the skip annotations.