From 6a891b26422ad8ca344a596a70ef7d7d8ede1e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeremy=20Lain=C3=A9?= Date: Wed, 30 Sep 2009 19:32:02 +0200 Subject: dpkg: fix package configuration on first boot * Use do_install to setup S98configure script, just like for the opkg package. --- recipes/dpkg/dpkg.inc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'recipes/dpkg/dpkg.inc') diff --git a/recipes/dpkg/dpkg.inc b/recipes/dpkg/dpkg.inc index eb5778fa3b..b15a6365b4 100644 --- a/recipes/dpkg/dpkg.inc +++ b/recipes/dpkg/dpkg.inc @@ -19,17 +19,14 @@ inherit autotools gettext DPKG_INIT_POSITION = "98" DPKG_INIT_POSITION_slugos = "41" -pkg_postinst_dpkg () { -#!/bin/sh -if [ "x$D" != "x" ]; then - install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d +do_install_prepend () { + install -d ${D}${sysconfdir}/rcS.d # this happens at S98 where our good 'ole packages script used to run printf "#!/bin/sh - dpkg --configure -a - rm -f /${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure -\n" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure - chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure -fi +dpkg --configure -a +rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure +" > ${D}${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure + chmod 0755 ${D}${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure } do_configure () { -- cgit v1.2.3