[oe] [PATCH] update IMAGE_ROOTFS variable to fix inconsistent IMAGE_ROOTFS variable content in apt-native package

Lin_Lynn at emc.com Lin_Lynn at emc.com
Sun Jun 21 10:32:32 UTC 2009


>From 5f5d0a311692a114360b7bd3037534a5ec839f33 Mon Sep 17 00:00:00 2001
From: Lynn Lin <Lin_Lynn at emc.com>
Date: Sun, 21 Jun 2009 18:15:06 +0800
Subject: [PATCH] update IMAGE_ROOTFS variable to fix inconsistent IMAGE_ROOTFS variable content in apt-native package
http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=2343808f7386cbd4c7b43f1b24e65e173f5ddf15
This commit change IMAGE_ROOTFS from "${TMPDIR}/rootfs" to "${TMPDIR}/rootfs/${PN},so it cause
that it expand IMAGE_ROOTFS to ${TMPDIR}/rootfs/apt-native in apt.conf.sample,however rootfs_deb.class use
apt.conf.sample to generate apt-rootfs.conf ,here IMAGE_ROOTFS is different from that in apt-native package
---
 classes/rootfs_deb.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/classes/rootfs_deb.bbclass b/classes/rootfs_deb.bbclass
index 8222066..dc2b2cb 100644
--- a/classes/rootfs_deb.bbclass
+++ b/classes/rootfs_deb.bbclass
@@ -44,6 +44,8 @@ fakeroot rootfs_deb_do_rootfs () {
 
  cat "${STAGING_ETCDIR_NATIVE}/apt/apt.conf.sample" \
   | sed -e 's#Architecture ".*";#Architecture "${DPKG_ARCH}";#' \
+         | sed -e 's#status ".*";#status "${IMAGE_ROOTFS}/var/dpkg/status";#' \ 
+  | sed -e 's#DPkg::Options {".*"};#DPkg::Options {"--root=${IMAGE_ROOTFS}";"--admindir=${IMAGE_ROOTFS}/var/dpkg";"--force-all";"--no-debsig"};#' \
   > "${STAGING_ETCDIR_NATIVE}/apt/apt-rootfs.conf"
 
  export APT_CONFIG="${STAGING_ETCDIR_NATIVE}/apt/apt-rootfs.conf"
-- 
1.6.0.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-update-IMAGE_ROOTFS-variable-to-fix-inconsistent-IMA.patch
Type: application/octet-stream
Size: 1475 bytes
Desc: 0001-update-IMAGE_ROOTFS-variable-to-fix-inconsistent-IMA.patch
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20090621/cf8f62d2/attachment-0002.obj>


More information about the Openembedded-devel mailing list