All of lore.kernel.org
 help / color / mirror / Atom feed
* Running script after installation (postinst)
@ 2012-06-12 14:35 Patrick
  2012-06-12 14:47 ` Richard Purdie
  2012-06-12 14:49 ` Tomas Frydrych
  0 siblings, 2 replies; 9+ messages in thread
From: Patrick @ 2012-06-12 14:35 UTC (permalink / raw)
  To: poky

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
}



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-06-14 14:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-12 14:35 Running script after installation (postinst) Patrick
2012-06-12 14:47 ` Richard Purdie
2012-06-13  7:18   ` Patrick
2012-06-13  8:08     ` Richard Purdie
     [not found]       ` <4FD8A5F5.4080001@yahoo.fr>
2012-06-13 15:22         ` Patrick
2012-06-14 13:30           ` Patrick
2012-06-14 14:24             ` Patrick
2012-06-14 14:40             ` Richard Purdie
2012-06-12 14:49 ` Tomas Frydrych

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.