summaryrefslogtreecommitdiff
path: root/meta/classes/rootfs_deb.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-27 17:29:04 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-27 17:29:04 +0000
commit207db00743b82b4f6ad7c9db974129a8a5ef1daa (patch)
tree392a3adf9de919b7ca1135cf554c92731b653c0f /meta/classes/rootfs_deb.bbclass
parent2d56326467b6e142d9cfb7342805b794a28761bb (diff)
downloadopenembedded-core-207db00743b82b4f6ad7c9db974129a8a5ef1daa.tar.gz
openembedded-core-207db00743b82b4f6ad7c9db974129a8a5ef1daa.tar.bz2
openembedded-core-207db00743b82b4f6ad7c9db974129a8a5ef1daa.tar.xz
openembedded-core-207db00743b82b4f6ad7c9db974129a8a5ef1daa.zip
rootfs_deb: Set Architecture correctly in a copy of apt.conf in staging
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@965 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
-rw-r--r--meta/classes/rootfs_deb.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index fee7db9ae..19e8b4420 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -29,7 +29,9 @@ fakeroot rootfs_deb_do_rootfs () {
priority=$(expr $priority + 5)
done
- export APT_CONFIG="${STAGING_DIR}/etc/apt/apt.conf"
+ cat "${STAGING_DIR}/etc/apt/apt.conf.sample" | sed -e 's#Architecture ".*";#Architecture "${TARGET_ARCH}";#' > "${STAGING_DIR}/etc/apt/apt-rootfs.conf"
+
+ export APT_CONFIG="${STAGING_DIR}/etc/apt/apt-rootfs.conf"
export D=${IMAGE_ROOTFS}
export OFFLINE_ROOT=${IMAGE_ROOTFS}
export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}