Skip to content

Commit

Permalink
Fix mappings and remove metadata_url
Browse files Browse the repository at this point in the history
Signed-off-by: Judy Ng <[email protected]>
  • Loading branch information
judysng committed Jan 9, 2024
1 parent 266efa9 commit 921a144
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function print_block_device_mapping {
function check_instance_store {
if ls /dev/nvme* >& /dev/null; then
IS_NVME=1
MAPPINGS=$(realpath --relative-to=/dev/ -P /dev/disk/by-id/nvme*Instance_Storage* | grep -v "Instance_Storage" | uniq)
MAPPINGS=$(realpath --relative-to=/dev/ -P /dev/disk/by-id/nvme*Instance_Storage* | grep -v "\*Instance_Storage\*" | uniq)
else
IS_NVME=0
set_imds_token
Expand Down
3 changes: 0 additions & 3 deletions util/cinc-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ checksum_mismatch() {
unable_to_retrieve_package() {
echo "Unable to retrieve a valid package!"
report_bug
# shellcheck disable=SC2154
echo "Metadata URL: $metadata_url"
if test "x$download_url" != "x"; then
echo "Download URL: $download_url"
fi
Expand Down Expand Up @@ -108,7 +106,6 @@ http_404_error() {
echo "that $platform is not supported."
echo ""
# deliberately do not call report_bug to suppress bug report noise.
echo "Metadata URL: $metadata_url"
if test "x$download_url" != "x"; then
echo "Download URL: $download_url"
fi
Expand Down

0 comments on commit 921a144

Please sign in to comment.