]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
base-files: sed installed file instead of original
authorSaul Wold <sgw@linux.intel.com>
Wed, 26 Feb 2014 13:49:16 +0000 (15:49 +0200)
committerSaul Wold <sgw@linux.intel.com>
Fri, 28 Feb 2014 09:32:10 +0000 (11:32 +0200)
When we change the ROOT_HOME the sed regex does not match if we are running
the do_install() a second time, so sed the installed file and preserve the original
so that the sed regex is matched correctly in the original

[YOCTO #5765]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/base-files/base-files_3.0.14.bb

index 726e0d57ee5d54a5e5e89ed3eb62c3dd44dc5456..dbf40fa6dca76d38d8400c81b1814c0809891bb2 100644 (file)
@@ -90,8 +90,8 @@ do_install () {
        install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab
        install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems
        install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd
-       sed -i "s#ROOTHOME#${ROOT_HOME}#" ${WORKDIR}/profile
        install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile
+       sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}${sysconfdir}/profile
        install -m 0644 ${WORKDIR}/shells ${D}${sysconfdir}/shells
        install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile
        install -m 0755 ${WORKDIR}/share/dot.bashrc ${D}${sysconfdir}/skel/.bashrc