-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dont use resolveconf on systemd #70
Conversation
I had a bit of a look into this. The original error in #58 is because I don't think you need to do anything with |
I tried using |
i see; so you are saying we should avoid mounting it if it exist. |
No, you have to mount it (I think). I mounted the Ubuntu Raspberry Pi image without mounting
I am using
|
what about copying it instead of mounting it? |
@joshuaspence updated pr to copy resolv conf. do you think this will help? i can make the copy default on / optional off. |
In my opinion to maintain backwards compatibility it should default to off. In addition, can I suggest a possibly different approach. Often the reason for @joshuaspence original issue is because of DNS server is misconfigured or unreachable for one reason or another. In theory it's addressable without |
Copying is not a good idea as then the file ends up in the image being created. I think we can probably bind mount both /run and /etc/resolve.conf (I think you would need to do /run first) @hoshsadiq this technique (mounting resolve.conf inside a chroot) is quite common and is very similar to what |
For example, arch-chroot (https://wiki.archlinux.org/index.php/Chroot) does this too |
if the issue that the file ends up in the image, we can make sure it is cleaned up if it was created. I'm a bit scared bind mounting |
I don’t think it would be destructive but the host would have to be a systemd host for mounting /run to be effective.
…On Wed, May 20, 2020 at 07:29, Yuval Kohavi ***@***.***> wrote:
if the issue that the file ends up in the image, we can make sure it is cleaned up if it was created.
I'm a bit scared bind mounting /run as this gives the image access to the host /run we might be destructive if these are different distributions, no?
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#70 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ABCP2DRZHG6M7O2TD6I5TU3RSPELBANCNFSM4NEAESOA).
|
I think the best solution would be to mimic
#48 is relevant here :) |
ok, I think we now have all the options. feedback is welcome |
will merge and in a day or two if no objections |
trying to address:
#58
#50
it seems like mounting resolv.conf by default lead to failures in systemd systems.
this makes it so it is not mounted on known systemd images.
I'm open for discussion of what's the best way here. mount it on known images? add
mount_ressolv
boolean option? any other ideas?cc @joshuaspence @hoshsadiq @micchickenburger