mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-24 09:52:24 +01:00
build_library: Add another build root check
The `/build` directory should never exist in the image. If it happens, it means that there was some leak from SDK into the image.
This commit is contained in:
parent
702a1bad01
commit
c969c92652
@ -79,5 +79,14 @@ test_image_content() {
|
||||
returncode=1
|
||||
fi
|
||||
|
||||
# TODO: merge this check with the blacklisted directories above,
|
||||
# when it stops being a warning-only check.
|
||||
if [ -d "${root}/build" ]; then
|
||||
error "test_image_content: ${root}/build directory found"
|
||||
info "contents of ${root}/build"
|
||||
ls -lAR "${root}/build"
|
||||
returncode=1
|
||||
fi
|
||||
|
||||
return $returncode
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user