diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-08-28 14:10:37 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-08-28 14:10:37 +0200 |
commit | dd51532b630b1563b85e4f5d34f63520f5023378 (patch) | |
tree | 45db8a4a5f0190caf9fb8e0e3424145f34ffc868 | |
parent | 5d202e1d196038a2e057876aaa36345363d160cf (diff) |
Fix prepare_rootfs script
This failed due to a missing alternatives source file.
-rw-r--r-- | meta-freedesktop/classes/freedesktop-contents.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-freedesktop/classes/freedesktop-contents.bbclass b/meta-freedesktop/classes/freedesktop-contents.bbclass index 6d44ea3..28ed87e 100644 --- a/meta-freedesktop/classes/freedesktop-contents.bbclass +++ b/meta-freedesktop/classes/freedesktop-contents.bbclass @@ -206,7 +206,9 @@ EOF path=`grep "${prio}$" $alt | tail -n 1 | sed 's/ [^ ]*$//'` path_basename=`basename $path` if [ "${path_basename/$name.}" != "$path_basename" ] ; then - mv -f ${IMAGE_ROOTFS}/$path ${IMAGE_ROOTFS}/$link + if [ -f "${IMAGE_ROOTFS}/$path" ] ; then + mv -f "${IMAGE_ROOTFS}/$path" "${IMAGE_ROOTFS}/$link" + fi fi done |