Comment 5 for bug 1764869

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Verification-done for artful: nplan 0.32~17.10.4
Verification-done for xenial: nplan 0.32~16.04.5

Verified that a random file "/run/netplan/toto.yaml" present on the system is removed when running "netplan apply" with the previous version of nplan, and remains in place when the new version is installed: additionally, wpa-* files are removed as they should by the process.

ubuntu@heroic-ibex:~$ sudo mkdir /run/netplan
ubuntu@heroic-ibex:~$ sudo touch /run/netplan/wpa-toto.conf
ubuntu@heroic-ibex:~$ sudo touch /run/netplan/someotherfile
ubuntu@heroic-ibex:~$ sudo touch /run/netplan/toto.yaml
ubuntu@heroic-ibex:~$ ls -l /run/netplan
total 0
-rw-r--r-- 1 root root 0 May 15 15:22 someotherfile
-rw-r--r-- 1 root root 0 May 15 15:22 toto.yaml
-rw-r--r-- 1 root root 0 May 15 15:21 wpa-toto.conf
ubuntu@heroic-ibex:~$ sudo netplan apply
ubuntu@heroic-ibex:~$ ls -l /run/netplan
total 0
-rw-r--r-- 1 root root 0 May 15 15:22 someotherfile
-rw-r--r-- 1 root root 0 May 15 15:22 toto.yaml
ubuntu@heroic-ibex:~$