diff options
| -rw-r--r-- | meta/classes/baremetal-image.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/baremetal-image.bbclass b/meta/classes/baremetal-image.bbclass index 81f5e5e93d..cb9e250350 100644 --- a/meta/classes/baremetal-image.bbclass +++ b/meta/classes/baremetal-image.bbclass | |||
| @@ -47,9 +47,10 @@ python do_rootfs(){ | |||
| 47 | Path(manifest_name).touch() | 47 | Path(manifest_name).touch() |
| 48 | if os.path.exists(manifest_name) and link_name: | 48 | if os.path.exists(manifest_name) and link_name: |
| 49 | manifest_link = deploy_dir + "/" + link_name + ".manifest" | 49 | manifest_link = deploy_dir + "/" + link_name + ".manifest" |
| 50 | if os.path.lexists(manifest_link): | 50 | if manifest_link != manifest_name: |
| 51 | os.remove(manifest_link) | 51 | if os.path.lexists(manifest_link): |
| 52 | os.symlink(os.path.basename(manifest_name), manifest_link) | 52 | os.remove(manifest_link) |
| 53 | os.symlink(os.path.basename(manifest_name), manifest_link) | ||
| 53 | # A lot of postprocess commands assume the existence of rootfs/etc | 54 | # A lot of postprocess commands assume the existence of rootfs/etc |
| 54 | sysconfdir = d.getVar("IMAGE_ROOTFS") + d.getVar('sysconfdir') | 55 | sysconfdir = d.getVar("IMAGE_ROOTFS") + d.getVar('sysconfdir') |
| 55 | bb.utils.mkdirhier(sysconfdir) | 56 | bb.utils.mkdirhier(sysconfdir) |
