From 7170f5d99b7cc2a58be3afb25bffec9da2978ff6 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Wed, 16 Jul 2008 17:18:10 -0500 Subject: [PATCH] add lpia support to mk-sbuild-lv --- debian/changelog | 4 ++++ mk-sbuild-lv | 15 ++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 95566fd..3655d6c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,10 @@ ubuntu-dev-tools (0.32) UNRELEASED; urgency=low [ Kees Cook ] * dch-repeat: drop edgy, add intrepid. Update Copyright years. + [ Mario Limonciello ] + * mk-sbuild-lv: Add lpia build support. + * mk-sbuild-lv: Copy mirror used for debootstrap into chroot too. + -- Kees Cook Wed, 09 Jul 2008 09:49:26 -0700 ubuntu-dev-tools (0.31) intrepid; urgency=low diff --git a/mk-sbuild-lv b/mk-sbuild-lv index f13f070..51ad04c 100755 --- a/mk-sbuild-lv +++ b/mk-sbuild-lv @@ -119,7 +119,7 @@ while :; do # By default, use the native architecture. arch_opt="--arch $2" arch_suffix="-$2" - if [ -z "$personality" -a "$2" = "i386" ] + if [ "$2" = "i386" ] || [ "$2" = "lpia" ] && [ -z "$personality" ]; then personality="linux32" fi @@ -191,6 +191,11 @@ else variant_opt="--variant=buildd" fi +# are we doing an lpia build? +if [ -z "$DEBOOTSTRAP_MIRROR" ] && [ "$arch_opt" = "--arch lpia" ]; then + DEBOOTSTRAP_MIRROR="http://ports.ubuntu.com/" +fi + # Allocate the "golden" chroot LV sudo lvcreate -n "$CHROOT_LV" -L "$LV_SIZE" "$VG" sudo mkfs -t ext3 "$CHROOT_PATH" @@ -208,10 +213,10 @@ if [ -r "$TEMPLATE_SOURCES" ]; then cat "$TEMPLATE_SOURCES" > "$TEMP_SOURCES" else cat > "$TEMP_SOURCES" <