Commit d91b906
fix(build.func): stop a modified conffile from aborting the whole update
update_script() runs with no tty. If an update pulls a package whose conffile
the operator edited, and the new version also ships a changed copy, dpkg raises
its "modified since installation" prompt, finds nothing to read it, and exits
with "end of file on stdin at conffile prompt".
The package is then left half configured (iU) and apt returns 100, which aborts
every other pending package on that container, not just the one being updated.
The error surfaced is "APT: Package manager error (broken packages / dependency
problems)", which does not mention conffiles. The dpkg --configure -a recovery
paths run without --force-conf* and hit the same prompt, so they cannot clear
it either.
87 of 583 ct scripts run an apt upgrade inside update_script() and none pass
Dpkg::Options, so this hooks the single dispatch in start() that all of them
already funnel through, beside the existing check_container_os_guard.
The guard is scoped to the update run and removed afterwards, so an operator's
own later apt calls are unaffected. It also reports any newly appearing
.dpkg-dist / .dpkg-new files, so keeping the local version stays visible
instead of silently diverging from upstream.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent ba2f9f8 commit d91b906
1 file changed
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4109 | 4109 | | |
4110 | 4110 | | |
4111 | 4111 | | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
4112 | 4171 | | |
4113 | 4172 | | |
4114 | 4173 | | |
| |||
4122 | 4181 | | |
4123 | 4182 | | |
4124 | 4183 | | |
| 4184 | + | |
4125 | 4185 | | |
| 4186 | + | |
4126 | 4187 | | |
4127 | 4188 | | |
4128 | 4189 | | |
| |||
4134 | 4195 | | |
4135 | 4196 | | |
4136 | 4197 | | |
| 4198 | + | |
4137 | 4199 | | |
| 4200 | + | |
4138 | 4201 | | |
4139 | 4202 | | |
4140 | 4203 | | |
| |||
4165 | 4228 | | |
4166 | 4229 | | |
4167 | 4230 | | |
| 4231 | + | |
4168 | 4232 | | |
| 4233 | + | |
4169 | 4234 | | |
4170 | 4235 | | |
4171 | 4236 | | |
| |||
0 commit comments