@@ -164,41 +164,6 @@ func DownloadImages(dockerMountDataPath string, releaseUrl string) error {
164164 return fmt .Errorf ("could not remove old images dir: %v" , err )
165165 }
166166
167- // -- mounts --
168- err = DownloadExtract (fmt .Sprintf ("mounts_images_64" ), dockerMountDataPath , releaseUrl )
169- if err != nil {
170- return fmt .Errorf ("could not download items_images: %v" , err )
171- }
172-
173- err = DownloadExtract (fmt .Sprintf ("mounts_images_256" ), dockerMountDataPath , releaseUrl )
174- if err != nil {
175- return fmt .Errorf ("could not download items_images: %v" , err )
176- }
177-
178- oldPathSmall := filepath .Join (dockerMountDataPath , "data" , "img" , "mount" , "small" )
179- oldPathBig := filepath .Join (dockerMountDataPath , "data" , "img" , "mount" , "big" )
180- newPathMounts := filepath .Join (dockerMountDataPath , "data" , "img" , "mount" )
181-
182- err = copyDir (oldPathSmall , newPathMounts )
183- if err != nil {
184- return fmt .Errorf ("could not copy images to path: %v" , err )
185- }
186-
187- err = copyDir (oldPathBig , newPathMounts )
188- if err != nil {
189- return fmt .Errorf ("could not copy images to path: %v" , err )
190- }
191-
192- err = os .RemoveAll (oldPathSmall )
193- if err != nil {
194- return fmt .Errorf ("could not remove old images dir: %v" , err )
195- }
196-
197- err = os .RemoveAll (oldPathBig )
198- if err != nil {
199- return fmt .Errorf ("could not remove old images dir: %v" , err )
200- }
201-
202167 return nil
203168}
204169
0 commit comments