Skip to content

Commit 51add0a

Browse files
systemvm: check if patchfile exists and is valid tarball before patching (#7953)
1 parent 3d8cc63 commit 51add0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/debian/opt/cloud/bin/setup/cloud-early-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ patch() {
6666
if [ "$TYPE" != "cksnode" ]; then
6767
while [ $retry -gt 0 ]
6868
do
69-
if [ -f $patchfile ]; then
69+
if tar tf $patchfile &> /dev/null; then
7070
eval $(validate_checksums $md5file $patchfile)
7171
if [ "$oldmd5" != "$newmd5" ] && [ -f ${patchfile} ] && [ "$newmd5" != "" ]
7272
then

0 commit comments

Comments
 (0)