Updating defaults for multiarch, part 1.

This commit is contained in:
Daniel Baumann 2010-12-06 00:02:43 +01:00
parent 70e84bd3c1
commit 7f57bd76c6
1 changed files with 80 additions and 33 deletions

View File

@ -270,6 +270,13 @@ Set_defaults ()
;; ;;
esac esac
fi fi
else
if [ "$(echo ${LB_ARCHITECTURES} | wc -w)" -gt "1" ]
then
_MULTIARCH="true"
else
_MULTIARCH="false"
fi
fi fi
# Include packages on base # Include packages on base
@ -304,13 +311,21 @@ Set_defaults ()
;; ;;
ubuntu) ubuntu)
case "${LB_ARCHITECTURES}" in case "${_MULTIARCH}"
amd64|i386) true)
LB_MIRROR_BOOTSTRAP="http://archive.ubuntu.com/ubuntu/" LB_MIRROR_BOOTSTRAP="http://archive.ubuntu.com/ubuntu/"
;; ;;
*) false)
LB_MIRROR_BOOTSTRAP="http://ports.ubuntu.com/" case "${LB_ARCHITECTURES}" in
amd64|i386)
LB_MIRROR_BOOTSTRAP="http://archive.ubuntu.com/ubuntu/"
;;
*)
LB_MIRROR_BOOTSTRAP="http://ports.ubuntu.com/"
;;
esac
;; ;;
esac esac
;; ;;
@ -332,13 +347,21 @@ Set_defaults ()
;; ;;
ubuntu) ubuntu)
case "${LB_ARCHITECTURES}" in case "${_MULTIARCH}" in
amd64|i386) true)
LB_MIRROR_CHROOT_SECURITY="http://security.ubuntu.com/ubuntu/" LB_MIRROR_CHROOT_SECURITY="http://security.ubuntu.com/ubuntu/"
;; ;;
*) false)
LB_MIRROR_CHROOT_SECURITY="http://ports.ubuntu.com/" case "${LB_ARCHITECTURES}" in
amd64|i386)
LB_MIRROR_CHROOT_SECURITY="http://security.ubuntu.com/ubuntu/"
;;
*)
LB_MIRROR_CHROOT_SECURITY="http://ports.ubuntu.com/"
;;
esac
;; ;;
esac esac
;; ;;
@ -362,13 +385,21 @@ Set_defaults ()
;; ;;
ubuntu) ubuntu)
case "${LB_ARCHITECTURES}" in case "${_MULTIARCH}" in
amd64|i386) true)
LB_MIRROR_CHROOT_VOLATILE="http://security.ubuntu.com/ubuntu/" LB_MIRROR_CHROOT_VOLATILE="http://security.ubuntu.com/ubuntu/"
;; ;;
*) false)
LB_MIRROR_CHROOT_VOLATILE="http://ports.ubuntu.com/" case "${LB_ARCHITECTURES}" in
amd64|i386)
LB_MIRROR_CHROOT_VOLATILE="http://security.ubuntu.com/ubuntu/"
;;
*)
LB_MIRROR_CHROOT_VOLATILE="http://ports.ubuntu.com/"
;;
esac
;; ;;
esac esac
;; ;;
@ -406,13 +437,21 @@ Set_defaults ()
;; ;;
ubuntu) ubuntu)
case "${LB_ARCHITECTURES}" in case "${_MULTIARCH}" in
amd64|i386) true)
LB_MIRROR_BINARY="http://archive.ubuntu.com/ubuntu/" LB_MIRROR_BINARY="http://archive.ubuntu.com/ubuntu/"
;; ;;
*) false)
LB_MIRROR_BINARY="http://ports.ubuntu.com/" case "${LB_ARCHITECTURES}" in
amd64|i386)
LB_MIRROR_BINARY="http://archive.ubuntu.com/ubuntu/"
;;
*)
LB_MIRROR_BINARY="http://ports.ubuntu.com/"
;;
esac
;; ;;
esac esac
;; ;;
@ -432,13 +471,21 @@ Set_defaults ()
;; ;;
ubuntu) ubuntu)
case "${LB_ARCHITECTURES}" in case "${_MULTIARCH}" in
amd64|i386) true)
LB_MIRROR_BINARY_SECURITY="http://archive.ubuntu.com/ubuntu/" LB_MIRROR_BINARY_SECURITY="http://archive.ubuntu.com/ubuntu/"
;; ;;
*) false)
LB_MIRROR_BINARY_SECURITY="http://ports.ubuntu.com/" case "${LB_ARCHITECTURES}" in
amd64|i386)
LB_MIRROR_BINARY_SECURITY="http://archive.ubuntu.com/ubuntu/"
;;
*)
LB_MIRROR_BINARY_SECURITY="http://ports.ubuntu.com/"
;;
esac
;; ;;
esac esac
;; ;;
@ -461,13 +508,21 @@ Set_defaults ()
;; ;;
ubuntu) ubuntu)
case "${LB_ARCHITECTURES}" in case "${_MULTIARCH}" in
amd64|i386) true)
LB_MIRROR_BINARY_VOLATILE="http://security.ubuntu.com/ubuntu/" LB_MIRROR_BINARY_VOLATILE="http://security.ubuntu.com/ubuntu/"
;; ;;
*) false)
LB_MIRROR_BINARY_VOLATILE="http://ports.ubuntu.com/" case "${LB_ARCHITECTURES}" in
amd64|i386)
LB_MIRROR_BINARY_VOLATILE="http://security.ubuntu.com/ubuntu/"
;;
*)
LB_MIRROR_BINARY_VOLATILE="http://ports.ubuntu.com/"
;;
esac
;; ;;
esac esac
;; ;;
@ -794,15 +849,7 @@ Set_defaults ()
## config/binary ## config/binary
# Setting image filesystem # Setting image filesystem
case "${LB_ARCHITECTURES}" in LB_BINARY_FILESYSTEM="${LB_BINARY_FILESYSTEM:-fat16}"
sparc)
LB_BINARY_FILESYSTEM="${LB_BINARY_FILESYSTEM:-ext2}"
;;
*)
LB_BINARY_FILESYSTEM="${LB_BINARY_FILESYSTEM:-fat16}"
;;
esac
# Setting image type # Setting image type
case "${LB_DISTRIBUTION}" in case "${LB_DISTRIBUTION}" in