Change the dpkg default behavior in slave, and docker-base, in order to prevent prompt (#3879)
* Change the dpkg default behavior in slave, and docker-base, in order to prevent prompt * Move to right place
This commit is contained in:
parent
ef26ba024d
commit
13eec88732
@ -20,3 +20,11 @@ path-exclude /usr/share/pyshared/twisted/test*
|
|||||||
path-exclude /usr/lib/python*/dist-packages/twisted/test*
|
path-exclude /usr/lib/python*/dist-packages/twisted/test*
|
||||||
path-exclude /usr/share/pyshared/twisted/*/test*
|
path-exclude /usr/share/pyshared/twisted/*/test*
|
||||||
path-exclude /usr/lib/python*/dist-packages/twisted/*/test*
|
path-exclude /usr/lib/python*/dist-packages/twisted/*/test*
|
||||||
|
|
||||||
|
## install the configuration file if it’s currently missing
|
||||||
|
force-confmiss
|
||||||
|
## combined with confold: overwrite configuration files that you have not modified
|
||||||
|
force-confdef
|
||||||
|
## do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix
|
||||||
|
force-confold
|
||||||
|
|
||||||
|
@ -20,3 +20,11 @@ path-exclude /usr/share/pyshared/twisted/test*
|
|||||||
path-exclude /usr/lib/python*/dist-packages/twisted/test*
|
path-exclude /usr/lib/python*/dist-packages/twisted/test*
|
||||||
path-exclude /usr/share/pyshared/twisted/*/test*
|
path-exclude /usr/share/pyshared/twisted/*/test*
|
||||||
path-exclude /usr/lib/python*/dist-packages/twisted/*/test*
|
path-exclude /usr/lib/python*/dist-packages/twisted/*/test*
|
||||||
|
|
||||||
|
## install the configuration file if it’s currently missing
|
||||||
|
force-confmiss
|
||||||
|
## combined with confold: overwrite configuration files that you have not modified
|
||||||
|
force-confdef
|
||||||
|
## do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix
|
||||||
|
force-confold
|
||||||
|
|
||||||
|
@ -293,6 +293,14 @@ RUN apt-get update && apt-get install -y \
|
|||||||
# For kdump-tools
|
# For kdump-tools
|
||||||
liblzo2-dev
|
liblzo2-dev
|
||||||
|
|
||||||
|
## Config dpkg
|
||||||
|
## install the configuration file if it’s currently missing
|
||||||
|
RUN sudo augtool --autosave "set /files/etc/dpkg/dpkg.cfg/force-confmiss"
|
||||||
|
## combined with confold: overwrite configuration files that you have not modified
|
||||||
|
RUN sudo augtool --autosave "set /files/etc/dpkg/dpkg.cfg/force-confdef"
|
||||||
|
## do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix
|
||||||
|
RUN sudo augtool --autosave "set /files/etc/dpkg/dpkg.cfg/force-confold"
|
||||||
|
|
||||||
# For smartmontools 6.6-1
|
# For smartmontools 6.6-1
|
||||||
RUN apt-get -t stretch-backports install -y debhelper
|
RUN apt-get -t stretch-backports install -y debhelper
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user