Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

soup: handle situations where apt prompts to keep/replace file #1108

Closed
dougburks opened this issue Jun 28, 2017 · 5 comments
Closed

soup: handle situations where apt prompts to keep/replace file #1108

dougburks opened this issue Jun 28, 2017 · 5 comments

Comments

@dougburks
Copy link
Contributor

Occasionally Ubuntu releases updates which will prompt the user to keep or replace a file. During a normal interactive soup, the user can answer the prompt and everything is fine. However, if the user runs sudo salt '*' cmd.run 'soup -y', then the salt minion runs soup -y and it will most likely just hang there waiting for user input.

@weslambert
Copy link
Collaborator

weslambert commented Jun 28, 2017

@dougburks
Copy link
Contributor Author

Yes, but we need to make sure we understand the behavior and how it applies to at least these two separate cases:

  1. This discussion started when Phil mentioned a recent example of unattended-upgrades. In this example, it's probably safe to accept the default and allow the new version of the file to be installed.

  2. Suppose a user modifies some Ubuntu file in /etc, then Ubuntu upgrades the package, and it overwrites their changes. At the very least, the user needs to know that the file was overwritten so that they can reapply their custom changes.

This will require some testing and experimentation to see if there are any other corner cases out there.

@dougburks
Copy link
Contributor Author

dougburks commented Aug 23, 2017

@dougburks
Copy link
Contributor Author

@dougburks
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants