mk-sbuild: Change cross-chroot's lvm volume names to be inline with non-lvm/sbuild.

This commit is contained in:
Dmitrijs Ledkovs 2013-02-12 11:03:04 +00:00
parent 77bde6c1c0
commit c6c7699c86

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