File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,22 @@ then
156156 sed -i " s/CONF_SWAPSIZE=.*/CONF_SWAPSIZE=$swapsize /" /etc/dphys-swapfile
157157fi
158158
159+ #
160+ # Configure confold and confdef if requested
161+ #
162+ rm -f /etc/apt/apt.conf.d/10-sdm-force
163+ if [[ " $poptions " =~ confold ]]
164+ then
165+ logtoboth " > Enable apt force-confold per --apt-options confold"
166+ echo ' Dpkg::Options "--force-confold";' >> /etc/apt/apt.conf.d/10-sdm-force
167+ fi
168+
169+ if [[ " $poptions " =~ confdef ]]
170+ then
171+ logtoboth " > Enable apt force-confdef per --apt-options confdef"
172+ echo ' Dpkg::Options "--force-confdef";' >> /etc/apt/apt.conf.d/10-sdm-force
173+ fi
174+
159175if ! [[ " $poptions " =~ " noupdate" ]]
160176then
161177 logtoboth " > Start 'apt update'"
You can’t perform that action at this time.
0 commit comments