netplan set results in error "OSError: [Errno 18] Invalid cross-device link"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
lsb_release -d
Description: Ubuntu 20.04.2 LTS
dpkg -l|grep netplan.io
ii netplan.io 0.102-0ubuntu1~
trying to edit netplan yaml using netplan set, but it looks like netplan is unable to update the config files:
netplan --debug set ethernets.
** (process:38433): DEBUG: 08:34:02.326: Processing input file //etc/netplan/
** (process:38433): DEBUG: 08:34:02.326: starting new processing pass
** (process:38433): DEBUG: 08:34:02.326: Processing input file //etc/netplan/
** (process:38433): DEBUG: 08:34:02.326: starting new processing pass
** (process:38433): DEBUG: 08:34:02.326: Processing input file //etc/netplan/
** (process:38433): DEBUG: 08:34:02.326: starting new processing pass
** (process:38433): DEBUG: 08:34:02.326: Processing input file //etc/netplan/
** (process:38433): DEBUG: 08:34:02.326: starting new processing pass
** (process:38433): DEBUG: 08:34:02.327: We have some netdefs, pass them through a final round of validation
** (process:38433): DEBUG: 08:34:02.327: ens192: setting default backend to 1
** (process:38433): DEBUG: 08:34:02.327: Configuration is valid
** (process:38433): DEBUG: 08:34:02.327: eth0: setting default backend to 1
** (process:38433): DEBUG: 08:34:02.327: Configuration is valid
DEBUG:Writing file 00-installer-
** (process:38433): DEBUG: 08:34:02.329: starting new processing pass
** (process:38433): DEBUG: 08:34:02.329: We have some netdefs, pass them through a final round of validation
** (process:38433): DEBUG: 08:34:02.329: ens192: setting default backend to 1
** (process:38433): DEBUG: 08:34:02.329: Configuration is valid
Traceback (most recent call last):
File "/usr/sbin/
netplan.main()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
os.
OSError: [Errno 18] Invalid cross-device link: '/tmp/netplan-
found reference at https:/ /github. com/canonical/ netplan/ pull/207 which might be related to this? same case for me - /etc/netplan and /tmp are on different mountpoints.