[PATCH] [setup] 10mount: Set CHROOT_MOUNT_DEVICE for chroots of type block-device.

Tim Abbott tabbott at mit.edu
Sun Mar 22 21:05:24 UTC 2009


Signed-off-by: Roger Leigh <rleigh at debian.org>
---
 bin/schroot/setup/10mount |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/bin/schroot/setup/10mount b/bin/schroot/setup/10mount
index b83d44a..c5329d5 100755
--- a/bin/schroot/setup/10mount
+++ b/bin/schroot/setup/10mount
@@ -188,6 +188,8 @@ if [ "$CHROOT_TYPE" = "plain" ] || [ "$CHROOT_TYPE" = "directory" ] || [ "$CHROO
 	UNPACK_LOCATION="${UNPACK_DIR}/${SESSION_ID}"
 	CHROOT_MOUNT_OPTIONS="--bind"
 	CHROOT_MOUNT_DEVICE="$UNPACK_LOCATION"
+    elif [ "$CHROOT_TYPE" = "block-device" ]; then
+       CHROOT_MOUNT_DEVICE="$CHROOT_DEVICE"
     elif [ "$CHROOT_TYPE" = "loopback" ]; then
 	CHROOT_MOUNT_OPTIONS="$CHROOT_MOUNT_OPTIONS -o loop"
     elif [ "$CHROOT_TYPE" = "lvm-snapshot" ]; then
-- 
1.5.6.5


--BRE3mIcgqKzpedwo--



More information about the Buildd-tools-devel mailing list