change directory out of the way of schroot problems.

This commit is contained in:
Kees Cook 2009-05-04 10:38:32 -07:00
parent e4da9b9daf
commit 865c68bb64
2 changed files with 8 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,7 +1,9 @@
ubuntu-dev-tools (0.74) UNRELEASED; urgency=low ubuntu-dev-tools (0.74) UNRELEASED; urgency=low
* mk-sbuild-lv: skip security repo for Debian unstable, thanks to * mk-sbuild-lv:
Ryan Niebur (LP: #371569). - skip security repo for Debian unstable, thanks to Ryan Niebur
(LP: #371569).
- change directory out of the way of schroot problems.
-- Kees Cook <kees@ubuntu.com> Mon, 04 May 2009 09:11:42 -0700 -- Kees Cook <kees@ubuntu.com> Mon, 04 May 2009 09:11:42 -0700

View File

@ -26,6 +26,10 @@
# It will deal with sbuild having not be installed and configured before. # It will deal with sbuild having not be installed and configured before.
set -e set -e
# For when schroot enters the chroot, we cannot be in a directory that
# will not exist in the chroot.
cd /
# Make sure we've got a regular user # Make sure we've got a regular user
if [ -w /etc/passwd ]; then if [ -w /etc/passwd ]; then
echo "Please run this script as a regular user, not root." >&2 echo "Please run this script as a regular user, not root." >&2