diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-01-29 15:04:26 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-30 00:03:01 +0000 |
commit | 96180955d06e9ae74cd8e8c2a980167c485c2df1 (patch) | |
tree | 632eb485f9ac15ad6b6dfc3c3e263b5ca9b394f9 /meta/classes/rootfs_rpm.bbclass | |
parent | cfb082961a6c9ac3d65738031c4071210529cd07 (diff) | |
download | poky-96180955d06e9ae74cd8e8c2a980167c485c2df1.tar.gz |
rootfs_rpm: Escape the backtick to ensure the ls runs on the target
This change ensures that the ls /etc/rpm-postinsts runs in the target
at first boot time, rather than at the creation time of the script on
the host.
This was causing the following error in the rootfs log:
+ install -d /srv/ssd/sgw/machines/fri2/tmp/work/fri2-poky-linux/core-image-minimal/1.0-r0/rootfs//etc/rcS.d
+ i=
+ ls /etc/rpm-postinsts/
ls: cannot access /etc/rpm-postinsts/: No such file or directory
(From OE-Core rev: e893cf0b3843701e80f5c9f47be04d1a88e5ed68)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index accd7d9c3c..119bf92cd7 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -108,7 +108,7 @@ fakeroot rootfs_rpm_do_rootfs () { | |||
108 | i=\$i | 108 | i=\$i |
109 | cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF | 109 | cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF |
110 | #!/bin/sh | 110 | #!/bin/sh |
111 | for i in `ls /etc/rpm-postinsts/`; do | 111 | for i in \`ls /etc/rpm-postinsts/\`; do |
112 | i=/etc/rpm-postinsts/$i | 112 | i=/etc/rpm-postinsts/$i |
113 | echo "Running postinst $i..." | 113 | echo "Running postinst $i..." |
114 | if [ -f $i ] && $i; then | 114 | if [ -f $i ] && $i; then |