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

dpkg-divert: warning: diverting file '/etc/issue' from an Essential package with rename is dangerous, use --no-rename #7

Open
adrelanos opened this issue Mar 2, 2022 · 0 comments

Comments

@adrelanos
Copy link

Adding 'diversion of /etc/issue to /etc/issue.kicksecure-orig by kicksecure-base-files'
dpkg-divert: warning: diverting file '/etc/issue' from an Essential package with rename is dangerous, use --no-rename
Adding 'diversion of /etc/motd to /etc/motd.kicksecure-orig by kicksecure-base-files'
Adding 'diversion of /etc/skel/.bashrc to /etc/skel/.bashrc.kicksecure-orig by kicksecure-base-files'
dpkg-divert: warning: diverting file '/etc/skel/.bashrc' from an Essential package with rename is dangerous, use --no-rename

Quote https://manpages.debian.org/testing/dpkg/dpkg-divert.1.en.html

--rename
Actually move the file aside (or back). dpkg-divert will abort operation in case the destination file already exists. This is the common behavior used for diversions of files from the non-Essential package set (see --no-rename for more details).

--no-rename
Specifies that the file should not be renamed while adding or removing the diversion into the database (since dpkg 1.19.1). This is intended for diversions of files from the Essential package set, where the temporary disappearance of the original file is not acceptable, as it can render the system non-functional. This is the default behavior, but that will change in the dpkg 1.20.x cycle.

Would it make sense to use --no-rename generally?

What is the disadvantage of --no-rename?

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

1 participant