[poky] Running script after installation (postinst)
Patrick
kpa_info at yahoo.fr
Tue Jun 12 07:35:30 PDT 2012
Dear all,
In one of our recipes we need to execute a small script after the
installation of the package. Following yocto dev manual point 4.3.6 we
have added a pkg_postinst function.
This doesn’t work properly as the script is executed at first start-up
and not after installation. Below are an example of this recipe.
Do you have any idea why this script is started as first boot time and
not after installation ?
Thanks in advance for any help !
Patrick
DESCRIPTION = "System modifications needed for System"
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PACKAGE_ARCH = "${MACHINE_ARCH}"
ALLOW_EMPTY = "1"
PR = "r5"
RDEPENDS = "\
rpm \
"
pkg_postinst_task-system-tweaks () {
#!/bin/sh -e
#Mount tmprecovery at startup
mkdir -p /tmprecovery
mkdir -p /data
echo "/dev/mtdblock6 /tmprecovery yaffs2 0 0" >>
/etc/fstab
echo "/dev/mtdblock7 /data yaffs2 noauto 0 0"
>> /etc/fstab
}
More information about the poky
mailing list