mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-12 14:48:13 +00:00
Merge pull request #1387 from jodh-intel/allow-data-collection-to-be-hidden
Allow data collection to be hidden
This commit is contained in:
commit
36fce98517
@ -672,6 +672,40 @@ read_osbuilder_file()
|
||||
cat "$file"
|
||||
}
|
||||
|
||||
show_header()
|
||||
{
|
||||
cat <<EOT
|
||||
<details>
|
||||
<summary>Show <tt>$script_name</tt> details</summary>
|
||||
<p>
|
||||
EOT
|
||||
}
|
||||
|
||||
show_footer()
|
||||
{
|
||||
cat <<EOT
|
||||
</p>
|
||||
</details>
|
||||
EOT
|
||||
}
|
||||
|
||||
show_details()
|
||||
{
|
||||
show_header
|
||||
|
||||
show_meta
|
||||
show_runtime
|
||||
show_runtime_configs
|
||||
show_throttler_details
|
||||
show_image_details
|
||||
show_initrd_details
|
||||
show_log_details
|
||||
show_container_mgr_details
|
||||
show_package_versions
|
||||
|
||||
show_footer
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
args=$(getopt \
|
||||
@ -711,15 +745,7 @@ main()
|
||||
[ $(id -u) -eq 0 ] || die "Need to run as root"
|
||||
[ -n "$runtime" ] || die "cannot find runtime '$runtime_name'"
|
||||
|
||||
show_meta
|
||||
show_runtime
|
||||
show_runtime_configs
|
||||
show_throttler_details
|
||||
show_image_details
|
||||
show_initrd_details
|
||||
show_log_details
|
||||
show_container_mgr_details
|
||||
show_package_versions
|
||||
show_details
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user