fix umount error when build is done 22/257822/5
authorHyunggi Lee <hyunggi.lee@samsung.com>
Mon, 3 May 2021 11:28:27 +0000 (20:28 +0900)
committerHyunggi Lee <hyunggi.lee@samsung.com>
Tue, 4 May 2021 03:43:05 +0000 (12:43 +0900)
commit4f2c6883d8a923e9aadc7bdc835b7aa083782209
tree115598f82c0f799f1b9235c408ec04ede078da96
parent9682daf8a594ef3897aaa8846be4718ae6082f6a
fix umount error when build is done

error: there're mounted directories to build root. Please unmount them manually to avoid being deleted unexpectly:
    / ==> ~/GBS-ROOT-TIZEN/t65std/local/BUILD-ROOTS/scratch.armv7l.0/proc
    / ==> ~/GBS-ROOT-TIZEN/t65std/local/BUILD-ROOTS/scratch.armv7l.0/proc/sys/fs/binfmt_misc
    / ==> ~/GBS-ROOT-TIZEN/t65std/local/BUILD-ROOTS/scratch.armv7l.0/proc

In certain build environments, proc/fs/sys/fs/binfmt_misc and proc are mounted multiple times (unknown reason)
However, when the build is complete, umount is executed only once.

So, I added the repeating code to umount them all.

Change-Id: Ia8cdfc62d0481043aae2b951a6daa202ba4b4a08
Signed-off-by: Hyunggi Lee <hyunggi.lee@samsung.com>
build
common_functions
init_buildsystem