mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
setup_board: create a glsa-check wrapper
We want to be able to verify that we don't have any vulnerabilities in the build root, so install a wrapper for glsa-check
This commit is contained in:
parent
3d851911c5
commit
9e64bef513
@ -80,7 +80,8 @@ exec sudo -E ${command} ${extra_args} "\$@"
|
||||
EOF
|
||||
# Note: parent will process these.
|
||||
wrappers+=( "${target}" )
|
||||
eval ${command^^}_WRAPPER="${target}" # ${foo^^} returns toupper($foo)
|
||||
upper=${command^^}
|
||||
eval ${upper/-/_}_WRAPPER="${target}" # ${foo^^} returns toupper($foo)
|
||||
}
|
||||
|
||||
generate_all_wrappers() {
|
||||
@ -90,7 +91,7 @@ generate_all_wrappers() {
|
||||
info "Generating wrapper scripts"
|
||||
|
||||
for wrapper in 'emerge --root-deps' ebuild eclean equery portageq \
|
||||
qcheck qfile qlist emaint; do
|
||||
qcheck qfile qlist emaint glsa-check; do
|
||||
_generate_wrapper ${wrapper}
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user