-
Notifications
You must be signed in to change notification settings - Fork 74
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
retire options support #190
Conversation
one problem with that PR is that it doesn't cleanup after itself: the options code is removed but the A better approach might be to deprecate the setting, and change the default. Then, eventually, that code could be ripped out. I mostly opened this as a basis for discussion. To really have the changes take effect, something like:
... would be required. |
another alternative here is, of course, to override the default options:
... and this could be a more minimalist PR to restore proper behavior here. but it has the disadvantage of forcing that policy change on people. this, arguably, would be better than silently stopping to manage a file. it could be a stepping stone towards deprecating the code as well. |
Agreed that this module should not be messing with these dpkg options. |
Opinions on how best to roll it back?
|
I haven't looked into it too much, but the revert you have here seems good to me, plus removal of |
unattended-upgrades does *not* need special configuration to `dpkg` for proper operation. It handles those itself. All that parameter does is changes the `dpkg` configuration for *other* `dpkg` runs. This will, for example, affect major upgrades, typically done by hand, and not unattended-upgrades, which was *not* designed for that purpose. In those cases, unsuspecting users will see their old configuration file versions silently kept in place, which most definitely *will* break things on upgrade, rather noisily in the end. People unfamiliar with this mechanism will have a hard time figuring out what has happened, and while recovery is possible, it is tricky without special tooling. I wrote such a tool here: https://gitlab.com/anarcat/koumbit-scripts/-/blob/master/vps/clean_conflicts ... but it not well known and definitely not shipped with Debian by default. While it is nice that the unattended-upgrades module allows users to change dpkg options, this can be more easily (and directly) done with the `apt::conf` parameter in the first place. This also marks the feature as deprecated. Once a proper deprecation delay has passed, the code can be removed (with, for example, PR voxpupuli#190).
i rolled this out alongside a deprecation in #191. please review. this PR can be kept for the future deprecation... |
unattended-upgrades does *not* need special configuration to `dpkg` for proper operation. It handles those itself. All that parameter does is changes the `dpkg` configuration for *other* `dpkg` runs. This will, for example, affect major upgrades, typically done by hand, and not unattended-upgrades, which was *not* designed for that purpose. In those cases, unsuspecting users will see their old configuration file versions silently kept in place, which most definitely *will* break things on upgrade, rather noisily in the end. People unfamiliar with this mechanism will have a hard time figuring out what has happened, and while recovery is possible, it is tricky without special tooling. I wrote such a tool here: https://gitlab.com/anarcat/koumbit-scripts/-/blob/master/vps/clean_conflicts ... but it not well known and definitely not shipped with Debian by default. While it is nice that the unattended-upgrades module allows users to change dpkg options, this can be more easily (and directly) done with the `apt::conf` parameter in the first place. This also marks the feature as deprecated. Once a proper deprecation delay has passed, the code can be removed (with, for example, PR voxpupuli#190).
should i revive this now that the deprecated options has been around for a while? |
Yes I think so. It would mean another major release, so it would be good to combine with other breaking changes if possible. At least rebasing and resolving the conflicts at this point would be good, so this can be ready to merge. |
i've rebased this and i think it's basically ready to ship as soon as CI is up. |
unattended-upgrades does *not* need special configuration to `dpkg` for proper operation. It handles those itself. All this does is changes the `dpkg` configuration for *other* `dpkg` runs. This will, for example, affect major upgrades, typically done by hand, and not unattended-upgrades, which was *not* designed for that purpose. In those cases, unsuspecting users will see their old configuration file versions silently kept in place, which most definitely *will* break things on upgrade, rather noisily in the end. People unfamiliar with this mechanism will have a hard time figuring out what has happened, and while recovery is possible, it is tricky without special tooling. I wrote such a tool here: https://gitlab.com/anarcat/koumbit-scripts/-/blob/master/vps/clean_conflicts ... but it not well known and definitely not shipped with Debian by default. While it is nice that the unattended-upgrades module allows users to change dpkg options, this can be more easily (and directly) done with the `apt::conf` parameter in the first place. This reverts commit 3a4abe4 and possibly later ones when the options type was introduced.
unattended-upgrades does not need special configuration to
dpkg
for proper operation. It handles those itself. All this does is
changes the
dpkg
configuration for otherdpkg
runs.This will, for example, affect major upgrades, typically done by hand,
and not unattended-upgrades, which was not designed for that
purpose. In those cases, unsuspecting users will see their old
configuration file versions silently kept in place, which most
definitely will break things on upgrade, rather noisily in the
end.
People unfamiliar with this mechanism will have a hard time figuring
out what has happened, and while recovery is possible, it is tricky
without special tooling. I wrote such a tool here:
https://gitlab.com/anarcat/koumbit-scripts/-/blob/master/vps/clean_conflicts
... but it not well known and definitely not shipped with Debian by
default.
While it is nice that the unattended-upgrades module allows users to
change dpkg options, this can be more easily (and directly) done with
the
apt::conf
parameter in the first place.This reverts commit 3a4abe4 and
possibly later ones when the options type was introduced.
This Pull Request (PR) fixes the following issues
Reverts #52.