From 865c68bb64d049ca9aca81dcdb32ab0388b5d57b Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Mon, 4 May 2009 10:38:32 -0700 Subject: [PATCH] change directory out of the way of schroot problems. --- debian/changelog | 6 ++++-- mk-sbuild-lv | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 45ab99d..2dafe7f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,9 @@ ubuntu-dev-tools (0.74) UNRELEASED; urgency=low - * mk-sbuild-lv: skip security repo for Debian unstable, thanks to - Ryan Niebur (LP: #371569). + * mk-sbuild-lv: + - skip security repo for Debian unstable, thanks to Ryan Niebur + (LP: #371569). + - change directory out of the way of schroot problems. -- Kees Cook Mon, 04 May 2009 09:11:42 -0700 diff --git a/mk-sbuild-lv b/mk-sbuild-lv index 01f7ab7..5656a73 100755 --- a/mk-sbuild-lv +++ b/mk-sbuild-lv @@ -26,6 +26,10 @@ # It will deal with sbuild having not be installed and configured before. 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 if [ -w /etc/passwd ]; then echo "Please run this script as a regular user, not root." >&2