On Tue, 15 Aug 2023 10:42:05 +0200 Guido Berhoerster <[email protected]> 
wrote:
> [   12.587974] overlayfs: failed to retrieve lower fileattr (sbin/init, 
> err=-6)
> mv: can't rename '/root/sbin/init': No such device or address

The actual problem is that rename(2) fails with ENXIO as overlayfs for some
reason fails to get the file attributes of the source file from the underlying
NFS filesystem. This does not just happen for broken symlinks such as
/root/sbin/init but any symlink on the lower filesystem and this does not
happen on kernel 5.10 on bullseye.

A workaround is to use cp -P and ln -sf to make a backup of the init symlink in 
client/initrd-bottom/55-initrd-bottom.sh

-- 
Guido Berhoerster

Reply via email to