branch: dora commit id (meta-yocto): 56f39bcf2237c11508d82238b6292e4bfbfed764 (meta-fsl-arm): 00f0cf377224829f450d99bdc4664ffe96623996 (meta-fsl-arm-extra): 12af63db7719877fd191ed2aa921a455a04f677b (meta-fsl-demos): 393b0119d513f9abf7b0570ab0d32b81583dedca Hi, I'm running an image that inherit core-image on a nitrogen6x and with resolvconf-1.74-r0 package installed. I want to change the ip of the dns-nameservers in /etc/network/interfaces for eth0. After changing the interfaces file I cannot update /etc/resolv.conf with neither of the commands; - resolvconf -a eth0 (it hangs and doesn't return) - resolvconf -u (it returns with no return messages) - resolvconf -d eth0 (does nothing) - ifdown eth0, ifup eth0 - reboot so I cannot reflect the change made in /etc/network/interfaces...
Resolvconf -a is not intended to be run from the command line, it's designed to take input from stdin via the dhcp client enter hook, ppp or ifdown/ifup scripts, this might be why you are having issues. Since this is a shell script, if you have further issues, please use sh -x to help better understand the failure. So, even a reboot does not work?
.
Since I have not heard back, I am closing this out, please reopen and provide updates if we still feel this is a bug.
Hi Saul, excuse me for the late reply. No, even a reboot does not work. But maybe I'm doing the wrong things...my procedure is: - I manually change the dns-nameservers entry (for example for eth0) in /etc/network/interfaces - I try to update the /etc/resolv.conf file with resolvconf command - reboot maybe is not the right way to change dns-nameserver informations?
Davide, I am still working this one in the background, I have a new question: what network management are you using? it's it just static, busybox with udhcp, the actual dhcp client or connman or ???, what exactly are you setting in your /etc/network/interfaces file (full entry if possible). I think I have finally made some progress on this! It seems that the resolvconf package is not being installed correctly onto the root filesystem on the target image, and even then it relies on bash'isms that may not be available with Busybox.
Created attachment 2251 [details] /etc/network/interfaces file
Hi Saul, the network management is static. I attached my /etc/network/interfaces file. The behavior is always the same: no updates to /etc/resolv.conf
(In reply to comment #5) > Davide, I am still working this one in the background, I have a new > question: > what network management are you using? it's it just static, busybox with > udhcp, the actual dhcp client or connman or ???, what exactly are you > setting > in your /etc/network/interfaces file (full entry if possible). > > I think I have finally made some progress on this! It seems that the > resolvconf package is not being installed correctly onto the root filesystem > on > the target image, and even then it relies on bash'isms that may not be > available with Busybox. I've tested v2 patch: http://patches.openembedded.org/patch/83771/ and it works fine for me for both dhcp and static configurations.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=35e0a3eb6725781eb291b3fa90694a68c3b64c60