Skip to content

Commit

Permalink
Quiet mode and better debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Stringy committed Mar 1, 2024
1 parent ce9ef42 commit 6b925ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel-modules/support-packages/04-create-support-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ for mod_ver_dir in "${MD_DIR}/module-versions"/*; do
split --lines=1000 -e --numeric-suffixes -a3 file-list.txt file-chunk

ls -alh
cat file-chunk*
wc -l file-list.txt

# For now we create *full* kernel support packages, not only deltas, in order to
# support the slim collector use-case.
# Remains to be clarified; we might provide more fine granular download options in the future.

# Chunking into groups so we don't download a huge amount of data at once
for chunk in file-chunk*; do
gsutil -m cp -I "$probe_dir" < "$chunk"
gsutil -m cp -qI "$probe_dir" < "$chunk"

if use_downstream "$mod_ver" && bucket_has_drivers "${DOWNSTREAM_MODULES_BUCKET}/${mod_ver}/*.gz"; then
# Get list of all files in downstream bucket, and all files just downloaded
Expand All @@ -73,7 +73,7 @@ for mod_ver_dir in "${MD_DIR}/module-versions"/*; do

# only download files that exist both in the probe dir and
# the bucket
sort downstream-files.txt | uniq -D | gsutil -m cp -I "$probe_dir"
sort downstream-files.txt | uniq -D | gsutil -m cp -qI "$probe_dir"
fi

compress_files "$package_root" "${package_out_dir}/${filename}"
Expand Down

0 comments on commit 6b925ae

Please sign in to comment.