Commit e676910
committed
guestfs: fix checksum verification for resized custom images
The SHA512 checksum verification was failing because it was being run
after the image had been resized and modified. The checksum from the
upstream source is only valid for the original downloaded image, not
the modified version.
Fix by:
1. Verifying the checksum immediately after download, before any
modifications
2. Removing the redundant checksum verification that happened after
resize operations
This ensures the image integrity is verified when downloaded, but
doesn't fail on subsequent runs when the image has been customized
for kdevops use.
Error was:
sha512sum: WARNING: 1 computed checksum did NOT match
debian-13-generic-amd64-daily.raw: FAILED
Generated-by: Claude AI
Signed-off-by: Luis Chamberlain <[email protected]>1 parent 3e6b60f commit e676910
1 file changed
+24
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
49 | 72 | | |
50 | 73 | | |
51 | 74 | | |
| |||
104 | 127 | | |
105 | 128 | | |
106 | 129 | | |
107 | | - | |
| 130 | + | |
108 | 131 | | |
109 | 132 | | |
110 | | - | |
111 | 133 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 134 | | |
144 | 135 | | |
145 | 136 | | |
| |||
0 commit comments