mk-sbuild: change lvm volume names to include target (LP: #1087194)

This commit is contained in:
Scott Moser 2013-02-13 14:12:06 -05:00
commit 59a79376cb
2 changed files with 6 additions and 1 deletions

1
debian/changelog vendored
View File

@ -5,6 +5,7 @@ ubuntu-dev-tools (0.146) UNRELEASED; urgency=low
[ Dmitrijs Ledkovs ]
* dgetlp: drop it, and hence remove python-gnupginterface dependency.
* mk-sbuild: change lvm volume names to include target (LP: #1087194)
[ Benjamin Kerensa ]
* setup-packaging-environment: update developer guide URL (LP: #1068049)

View File

@ -362,7 +362,11 @@ case "$SCHROOT_TYPE" in
fi
# Set up some variables for use in the paths and names
CHROOT_LV="${name}_${CHROOT_ARCH}_chroot"
if [ -z "$TARGET_ARCH" ]; then
CHROOT_LV="${name}_${CHROOT_ARCH}_chroot"
else
CHROOT_LV="${name}_${CHROOT_ARCH}_${TARGET_ARCH}_chroot"
fi
CHROOT_PATH="/dev/$VG/$CHROOT_LV"
# Install lvm2 if missing