diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-23 16:15:06 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-23 16:15:06 +0000 |
commit | 7b6ad5b9fb0a004cba5a5ff59004aa795ddf0a87 (patch) | |
tree | 999ea988606f1aefa0e1dd414b56b632d9b0718a /meta/packages/dpkg | |
parent | 75f3ca5abb0d7a476a8926f2007bf40782326ce5 (diff) | |
download | poky-7b6ad5b9fb0a004cba5a5ff59004aa795ddf0a87.tar.gz |
Fix postinstall scripts not to use IMAGE_ROOTFS direction by use D instead. Based on a patch from Carl Simonson <simonsonc@gmail.com>
Diffstat (limited to 'meta/packages/dpkg')
-rw-r--r-- | meta/packages/dpkg/dpkg.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/packages/dpkg/dpkg.inc b/meta/packages/dpkg/dpkg.inc index 041b437abd..67c0781ce8 100644 --- a/meta/packages/dpkg/dpkg.inc +++ b/meta/packages/dpkg/dpkg.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | DESCRIPTION = "Package maintenance system for Debian." | 1 | DESCRIPTION = "Package maintenance system for Debian." |
2 | LICENSE = "GPL" | 2 | LICENSE = "GPL" |
3 | SECTION = "base" | 3 | SECTION = "base" |
4 | PR = "r6" | 4 | PR = "r7" |
5 | 5 | ||
6 | SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz \ | 6 | SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz \ |
7 | file://ignore_extra_fields.patch;patch=1 \ | 7 | file://ignore_extra_fields.patch;patch=1 \ |
@@ -19,13 +19,13 @@ DPKG_INIT_POSITION_slugos = "41" | |||
19 | pkg_postinst_dpkg () { | 19 | pkg_postinst_dpkg () { |
20 | #!/bin/sh | 20 | #!/bin/sh |
21 | if [ "x$D" != "x" ]; then | 21 | if [ "x$D" != "x" ]; then |
22 | install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d | 22 | install -d $D/${sysconfdir}/rcS.d |
23 | # this happens at S98 where our good 'ole packages script used to run | 23 | # this happens at S98 where our good 'ole packages script used to run |
24 | echo -e "#!/bin/sh | 24 | echo -e "#!/bin/sh |
25 | dpkg --configure -a | 25 | dpkg --configure -a |
26 | rm -f /${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure | 26 | rm -f /${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure |
27 | " > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure | 27 | " > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure |
28 | chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure | 28 | chmod 0755 $D/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure |
29 | fi | 29 | fi |
30 | } | 30 | } |
31 | 31 | ||