From 8251faa4a7ea8a903188d8aafdc161333aad3830 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 3 Feb 2026 17:12:59 +0100 Subject: [PATCH] MT#64357 Ignore /etc/localtime Our cowbuilder based chroots that are also used for piuparts, provide /etc/localtime by default (seems to get created by mmdebstrap): % ls -la /var/cache/pbuilder.persistent/base-trixie-amd64.cow/etc/localtime lrwxrwxrwx 1 root root 23 Feb 2 18:24 /var/cache/pbuilder.persistent/base-trixie-amd64.cow/etc/localtime -> /usr/share/zoneinfo/UTC Now as of tzdata v2017a-1, tzdata removes file /etc/localtime on purge, see https://bugs.debian.org/854141 Until piuparts also ignores this file change (known as https://bugs.debian.org/1080295), let's make sure we don't report this as a problem, by ignoring it within our piuparts wrapper. Fixes: | ERROR: FAIL: After purging files have disappeared: | /etc/localtime -> /usr/share/zoneinfo/UTC not owned FTR: % piuparts --help 2>&1 | grep -A3 -- ' -i ' -i FILENAME, --ignore=FILENAME Add FILENAME to list of filenames to be ignored when comparing changes to chroot.FILENAMES prefixed with ':' will be reported verbosely. Change-Id: Ie1c1e0246b7540a7806aa94fc9338fd3a1e56457 --- wrapper/piuparts_runner | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrapper/piuparts_runner b/wrapper/piuparts_runner index bfb017c..ba3466f 100755 --- a/wrapper/piuparts_runner +++ b/wrapper/piuparts_runner @@ -66,7 +66,8 @@ piuparts_cmdline="sudo piuparts \ --warn-on-leftovers-after-purge --skip-logrotatefiles-test --log-file=piuparts.txt \ --distribution=$distribution --mirror=$mirror --keep-sources-list \ --scriptsdir=$SCRIPTSDIR --tmpdir=$PIUPARTS_TMPDIR \ - --existing-chroot=$PIUPARTS_BASEDIR ${UPDATE_RETRIES:-}" + --existing-chroot=$PIUPARTS_BASEDIR ${UPDATE_RETRIES:-} \ + -i /etc/localtime" echo "*** Using '$piuparts_cmdline' as piuparts_cmdline ***" # wrapper for CE vs PRO vs CARRIER packages