Debian: suppress the permission denied message in apt update
To save disc space for docker users, each time after `apt upgrade` all related cache packages will be removed. While in use case that common users get apt cache with a fake rootdir will also trigger this mechanism thus cause the `rm` operation failed as: "rm: cannot remove '/var/cache/apt/archives/partial/*.deb': Permission denied" It is harmless but will always confuse users and analysis tools. Suppress it. Test Plan: - Pass: `build-pkgs xxx`, no "Permission denied" Story: 208862 Task: 45335 Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com> Change-Id: Iab81f03c6c03a4caf47f21275762b06922245485
This commit is contained in:
parent
1b3e211bfa
commit
76d87e2833
|
@ -79,7 +79,8 @@ RUN pip3 --no-cache-dir install \
|
|||
RUN sed -i '/^proxy_dns*/d' /etc/proxychains.conf && \
|
||||
sed -i 's/^socks4.*/socks5 127.0.0.1 8080/g' /etc/proxychains.conf && \
|
||||
ln -sf /usr/local/bin/stx/stx-localrc /root/localrc && \
|
||||
echo '. /usr/local/bin/finishSetup.sh' >> /root/.bashrc
|
||||
echo '. /usr/local/bin/finishSetup.sh' >> /root/.bashrc && \
|
||||
sed -i 's/ || true/ \> \/dev\/null 2\>\&1 &/' /etc/apt/apt.conf.d/docker-clean
|
||||
|
||||
COPY stx/toCOPY/lat-tool/lat /opt/LAT/lat
|
||||
COPY stx/toCOPY/builder/finishSetup.sh /usr/local/bin
|
||||
|
|
Loading…
Reference in New Issue