mk-sbuild: default to using UTC for schroots (LP: #2097159).

This commit is contained in:
Simon Quigley 2025-03-04 13:22:40 -06:00
parent 5a20308ab1
commit 3d11516599
2 changed files with 3 additions and 2 deletions

1
debian/changelog vendored
View File

@ -12,6 +12,7 @@ ubuntu-dev-tools (0.206) UNRELEASED; urgency=medium
[ Simon Quigley ] [ Simon Quigley ]
* Read ~/.devscripts in a more robust way, to ideally pick up multi-line * Read ~/.devscripts in a more robust way, to ideally pick up multi-line
variables (Closes: #725418). variables (Closes: #725418).
* mk-sbuild: default to using UTC for schroots (LP: #2097159).
-- Simon Quigley <tsimonq2@debian.org> Tue, 04 Mar 2025 13:04:30 -0600 -- Simon Quigley <tsimonq2@debian.org> Tue, 04 Mar 2025 13:04:30 -0600

View File

@ -928,8 +928,8 @@ if [ -n "$TEMP_PREFERENCES" ]; then
sudo mv "$TEMP_PREFERENCES" $MNT/etc/apt/preferences.d/proposed.pref sudo mv "$TEMP_PREFERENCES" $MNT/etc/apt/preferences.d/proposed.pref
fi fi
# Copy the timezone (comment this out if you want to leave the chroot at UTC) # Copy the timezone (uncomment this if you want to use your local time zone)
sudo cp -P --remove-destination /etc/localtime /etc/timezone "$MNT"/etc/ #sudo cp -P --remove-destination /etc/localtime /etc/timezone "$MNT"/etc/
# Create a schroot entry for this chroot # Create a schroot entry for this chroot
TEMP_SCHROOTCONF=`mktemp -t schrootconf-XXXXXX` TEMP_SCHROOTCONF=`mktemp -t schrootconf-XXXXXX`
TEMPLATE_SCHROOTCONF=~/.mk-sbuild.schroot.conf TEMPLATE_SCHROOTCONF=~/.mk-sbuild.schroot.conf