From 6b925aed668b6aff2611ac527066a966d7399af3 Mon Sep 17 00:00:00 2001 From: Giles Hutton Date: Fri, 1 Mar 2024 14:54:23 +0000 Subject: [PATCH] Quiet mode and better debug logging --- .../support-packages/04-create-support-packages.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel-modules/support-packages/04-create-support-packages.sh b/kernel-modules/support-packages/04-create-support-packages.sh index 510eea9cee..f4fb8b890a 100755 --- a/kernel-modules/support-packages/04-create-support-packages.sh +++ b/kernel-modules/support-packages/04-create-support-packages.sh @@ -56,7 +56,7 @@ 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. @@ -64,7 +64,7 @@ for mod_ver_dir in "${MD_DIR}/module-versions"/*; do # 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 @@ -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}"