Re: Network interface renaming fails

andrew bezella <[email protected]>
Newsgroups gmane.linux.debian.fai
Organization internet archive
Message-ID <[email protected]>
On Thu, 2020-06-04 at 18:22 +0000, Michael S. Kriss wrote:
> During install of a fai client I'm getting:
> 
> systemd-udevd: eth0: failed to rename network interface 2 from 'eth0'
> to 'enp2s0f0': Device or resource busy
> 
> After rebooting newly installed client the rename from eth to enp is
> successful which causes networking not to be enabled due to
> /etc/network/interfaces looking for eth0 as the networking device.

hello -

i see these in my `error.log` for installs, too.  on reboot, however,
these hosts are successfully booting with systemd's "predictably named"
interface managed via `/etc/network/interfaces.d` (ubuntu 16.04 / fai
5.9.4)

> Any ideas why the rename fails during install but is successful on
> reboot?  How to fix this in fai setup?

if you want to transition to the systemd naming scheme, i would suggest
starting by looking in your config space, particularly
`scripts/DEBIAN/30-interface` as it compares to https://raw.githubuserc
ontent.com/faiproject/fai-config/master/scripts/DEBIAN/30-interface. 
if you have updated the fai packages but not examined upstream's fai-
config scripts/hooks/etc. you may find the solution there.

if you want to avoid the systemd interface naming, some solutions that
could be implemented can be found at https://www.debian.org/releases/st
able/amd64/release-notes/ch-information.en.html#migrate-interface-names

hth...

	andy

-- 
andrew bezella <[email protected]>
internet archive
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.