From: Patrick <kpa_info@yahoo.fr>
To: poky@yoctoproject.org
Subject: Running script after installation (postinst)
Date: Tue, 12 Jun 2012 16:35:30 +0200 [thread overview]
Message-ID: <4FD753B2.9060705@yahoo.fr> (raw)
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
}
next reply other threads:[~2012-06-12 14:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-12 14:35 Patrick [this message]
2012-06-12 14:47 ` Running script after installation (postinst) 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FD753B2.9060705@yahoo.fr \
--to=kpa_info@yahoo.fr \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.