diff options
Diffstat (limited to 'meta/classes/qemuboot.bbclass')
-rw-r--r-- | meta/classes/qemuboot.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass index 86b306037f..0e21fc9bde 100644 --- a/meta/classes/qemuboot.bbclass +++ b/meta/classes/qemuboot.bbclass | |||
@@ -114,7 +114,8 @@ python do_write_qemuboot_conf() { | |||
114 | with open(qemuboot, 'w') as f: | 114 | with open(qemuboot, 'w') as f: |
115 | cf.write(f) | 115 | cf.write(f) |
116 | 116 | ||
117 | if os.path.lexists(qemuboot_link): | 117 | if qemuboot_link != qemuboot: |
118 | os.remove(qemuboot_link) | 118 | if os.path.lexists(qemuboot_link): |
119 | os.symlink(os.path.basename(qemuboot), qemuboot_link) | 119 | os.remove(qemuboot_link) |
120 | os.symlink(os.path.basename(qemuboot), qemuboot_link) | ||
120 | } | 121 | } |