Skip to content
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

Have virt-sysprep to cleanup /etc/hosts #44

Closed
lzap opened this issue Mar 2, 2020 · 2 comments
Closed

Have virt-sysprep to cleanup /etc/hosts #44

lzap opened this issue Mar 2, 2020 · 2 comments

Comments

@lzap
Copy link

lzap commented Mar 2, 2020

Hello Rich!

We had a request in Foreman to do cleanup /etc/hosts in our finish template (something like cloud-init but over ssh for those who don't use it). I closed the request with reference to the virt-sysprep tool but shortly after I started digging if the tool actually touches /etc/hosts and I am actually unable to find this.

However it does cleanup hostname from ifcfg scripts: https://github.com/libguestfs/libguestfs/blob/master/sysprep/sysprep_operation_net_hostname.ml. Therefore I am raising this ticket to consider also cleaning up /etc/hosts. It does make a lot of sense.

Thanks!

@rwmjones
Copy link
Member

rwmjones commented Mar 3, 2020

https://bugzilla.redhat.com/show_bug.cgi?id=1809480

Hi Lukáš, as we don't use github for issues etc I filed an upstream bug, see link above. Do you have a better idea about what entries exactly we'd remove/change in /etc/hosts? It'd be good to add some examples of the sorts of changes you mean to the BZ.

@lzap
Copy link
Author

lzap commented Mar 3, 2020

Absolutely, thanks.

@lzap lzap closed this as completed Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants