Multi-users may run qemu on the same host, all of them should be able to create or remove lock in lockdir, so set lockdir's mode to 0o777.
Note, os.mkdir()'s mode is default to 0o777, but the current umask value is first masked out, so use os.chmod() to set it. Signed-off-by: Robert Yang <[email protected]> --- scripts/runqemu | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/runqemu b/scripts/runqemu index e9ed890bb27..2be27804841 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -910,6 +910,7 @@ class BaseConfig(object): # running at the same time. try: os.mkdir(lockdir) + os.chmod(lockdir, 0o777) except FileExistsError: pass -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
