]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkosi: set file permissions in copy of source tree (#8370)
authorFilipe Brandenburger <filbranden@google.com>
Tue, 20 Mar 2018 16:21:36 +0000 (09:21 -0700)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Mar 2018 16:21:36 +0000 (17:21 +0100)
commitb454cfb05c46312054ad736a841e70211905016b
tree2f513ee7d7faf94e48d259a0360e5350b37fa38a
parent0d9fca76bb69e162265b2d25cb79f1890c0da31b
mkosi: set file permissions in copy of source tree (#8370)

Meson keeps permissions around during the build, so details of how umask
was set when cloning the original git tree will leak all the way to the
installed files in the mkosi image.

So reset the permissions of the files in the copy of the tree before
starting the build.

Also set the umask explicitly.

Tested by creating a mkosi image and booting it on a tree that was
cloned with a umask of 027, confirmed that the *.target files were not
created as world-unreadable anymore.
mkosi.build