ilbers / isar

Integration System for Automated Root filesystem generation
Other
178 stars 72 forks source link

mount refactoring #38

Closed stormc closed 6 years ago

stormc commented 6 years ago

As bitbake/lib/bb/build.py's shell_trap_code() injects set -e into scripts, the premature end of scripts leaves dangling mounts around. This may be fixed by hooking into the EXIT trap handler also setup by shell_trap_code(). See the patch and discussion on the Mailing List for details.

Currently, by the patches sent to the Mailing List, dangling mount handling is local to the scripts. Eventually, a more thorough approach may be taken, e.g., based on this proposal using an "unmount stack".

alexbluesman commented 6 years ago

Implemented via bitbake events.