mk-sbuild: cp localtime and timezone a little harder (LP: #1569400)

This commit is contained in:
Adam Conrad 2016-05-09 00:00:40 -06:00
parent 53dc45e6e3
commit 0575dd0112
2 changed files with 7 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ubuntu-dev-tools (0.157) unstable; urgency=medium
* mk-sbuild: cp localtime and timezone a little harder (LP: #1569400)
-- Adam Conrad <adconrad@debian.org> Sun, 08 May 2016 23:58:48 -0600
ubuntu-dev-tools (0.156) unstable; urgency=medium
[ Adam Conrad ]

View File

@ -713,7 +713,7 @@ cat "$TEMP_SOURCES" | sed -e "s|RELEASE|$RELEASE|g" | \
rm -f "$TEMP_SOURCES"
# Copy the timezone (comment this out if you want to leave the chroot at UTC)
sudo cp /etc/localtime /etc/timezone "$MNT"/etc/
sudo cp -P --remove-destination /etc/localtime /etc/timezone "$MNT"/etc/
# Create a schroot entry for this chroot
TEMP_SCHROOTCONF=`mktemp -t schrootconf-XXXXXX`
TEMPLATE_SCHROOTCONF=~/.mk-sbuild.schroot.conf