mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-15 16:13:20 +00:00
scripts: Handle missing partitions in collect script
Add an extra check in the data collection script to ensure partitions are found in the image. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
c70ba4844f
commit
bdf6b2d49d
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017-2018 Intel Corporation
|
# Copyright (c) 2017-2019 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
@ -407,6 +407,11 @@ get_image_details()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
partitions=$(get_partitions "$loop_device")
|
partitions=$(get_partitions "$loop_device")
|
||||||
|
if [ -z "$partitions" ]; then
|
||||||
|
release_device "$loop_device"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
count=$(echo "$partitions"|wc -l)
|
count=$(echo "$partitions"|wc -l)
|
||||||
|
|
||||||
expected=1
|
expected=1
|
||||||
|
Loading…
Reference in New Issue
Block a user