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".
As
bitbake/lib/bb/build.py
'sshell_trap_code()
injectsset -e
into scripts, the premature end of scripts leaves dangling mounts around. This may be fixed by hooking into theEXIT
trap handler also setup byshell_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".