Bläddra i källkod

mount: Cleanup reference counters before build

Reference counters are not cleared in case unsuccessful build happens.
So we need to force cleanup before the build.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
Anton Mikanovich 4 år sedan
förälder
incheckning
0ed390078d
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      meta/classes/isar-events.bbclass

+ 2 - 0
meta/classes/isar-events.bbclass

@@ -8,6 +8,8 @@ addhandler build_started
 
 python build_started() {
     bb.utils.remove(d.getVar('TMPDIR') + "/work/*/*/*/temp/once.*")
+    bb.utils.remove(d.getVar('TMPDIR') + "/work/*/*/*/rootfs.mount")
+    bb.utils.remove(d.getVar('TMPDIR') + "/deploy/buildchroot-*/*.mount")
 }
 build_started[eventmask] = "bb.event.BuildStarted"