[arch-general] systemd-nspawn resolv.conf issue

Ralf Mardorf ralf.mardorf at rocketmail.com
Sun May 24 18:10:59 UTC 2015


Hi,

the issue is solved, but I don't know how I solved it.

I had the following issue.

# systemd-nspawn -D /mnt/q
[snip]
Failed to copy /etc/resolv.conf to /mnt/q/etc/resolv.conf: Too many
levels of symbolic links

From outside the container

# ls -hAl /etc/resolv.conf /mnt/q/etc/resolv.conf
-rw-r--r-- 1 root root 48 May 24 19:07 /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Nov 19  2012 /mnt/q/etc/resolv.conf
-> ../run/resolvconf/resolv.conf

then I removed and copied this and that inside and outside the container
and now it's solved, also when I start another container.

# ls -hAl /etc/resolv.conf /mnt/q/etc/resolv.conf
-rw-r--r-- 1 root root 48 May 24 19:07 /etc/resolv.conf
-rw-r--r-- 1 root root 48 May 24 19:07 /mnt/q/etc/resolv.conf
# ls -hAl /etc/resolv.conf /mnt/oz/etc/resolv.conf
-rw-r--r-- 1 root root 48 May 24 19:07 /etc/resolv.conf
-rw-r--r-- 1 root root 48 May 24 19:07 /mnt/oz/etc/resolv.conf

I can't reproduce at what point I solved the issue, resp. reproduce the
state when it failed.

Any ideas? Bash history isn't a help for me.

Regards,
Ralf


More information about the arch-general mailing list