Remove resolv.conf after purging resolvconf#23
Remove resolv.conf after purging resolvconf#23oonska wants to merge 1 commit intosaltstack-formulas:masterfrom
Conversation
If there is an existing symlink to resolv.conf then the file.managed state will fail. Here we resolve that by destroying the resolv.conf file if we remove resolvconf.
|
@oonska I understand the issue, but removing the symlink won't it render the system unusable? |
|
Not if you replace it with a proper |
|
The next state 'resolv-file' will create the /etc/resolv.conf file after we remove the symlink in 'remove-symlink'. |
|
I think a better way to do that is just adding: So no need to remove the symlink then create it, but it will be overwritten. |
If there is an existing symlink to resolv.conf then the file.managed
state will fail. Here we resolve that by destroying the resolv.conf
file if we remove resolvconf.