mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
build_library/build_image_util: Fix zipping of pcr policy
We invoke zip inside the BUILD_DIR and tell it to output the compressed file somewhere in BUILD_DIR. This works if BUILD_DIR is an absolute path, but breaks when it's relative. Since we already are in BUILD_DIR, tell zip to output the file in the current directory instead. Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
parent
13949bef2f
commit
98ab40ea2a
@ -852,7 +852,7 @@ EOF
|
||||
|
||||
info "Generating $pcr_policy"
|
||||
pushd "${BUILD_DIR}" >/dev/null
|
||||
zip --quiet -r -9 "${BUILD_DIR}/${pcr_policy}" pcrs
|
||||
zip --quiet -r -9 "${pcr_policy}" pcrs
|
||||
popd >/dev/null
|
||||
rm -rf "${BUILD_DIR}/pcrs"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user