summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2015-07-24 13:48:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-31 10:31:00 +0100
commit5f3f4196988675e9be5aea8eac56687641b90c10 (patch)
tree1a9dc095348acd2490200b654e17804871fafed7 /meta/recipes-core/initscripts
parentd32f7f86b5d2b48222bdaada2697cd5e23cfe1c9 (diff)
downloadopenembedded-core-contrib-5f3f4196988675e9be5aea8eac56687641b90c10.tar.gz
openembedded-core-contrib-5f3f4196988675e9be5aea8eac56687641b90c10.tar.bz2
openembedded-core-contrib-5f3f4196988675e9be5aea8eac56687641b90c10.zip
initscripts: urandom: respect ${localstatedir} instead of hardcoding /var
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/initscripts')
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index b1d917da6a..f90de6e4da 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -79,7 +79,7 @@ do_install () {
install -d ${D}${sysconfdir}/default
install -d ${D}${sysconfdir}/default/volatiles
# Holds state information pertaining to urandom
- install -d ${D}/var/lib/urandom
+ install -d ${D}${localstatedir}/lib/urandom
install -m 0644 ${WORKDIR}/functions ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/bootmisc.sh ${D}${sysconfdir}/init.d
@@ -94,6 +94,7 @@ do_install () {
install -m 0755 ${WORKDIR}/single ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/umountnfs.sh ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/urandom ${D}${sysconfdir}/init.d
+ sed -i ${D}${sysconfdir}/init.d/urandom -e 's,/var/,${localstatedir}/,g;s,/etc/,${sysconfdir}/,g'
install -m 0755 ${WORKDIR}/devpts.sh ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/devpts ${D}${sysconfdir}/default
install -m 0755 ${WORKDIR}/sysfs.sh ${D}${sysconfdir}/init.d