Browse code

Merge pull request #21872 from Microsoft/sjw/nanoserver-fix

Fixing nanoserver image load bug.

John Howard authored on 2016/04/08 13:24:32
Showing 2 changed files
... ...
@@ -401,7 +401,9 @@ func restoreCustomImage(is image.Store, ls layer.Store, rs reference.Store) erro
401 401
 
402 402
 		id, err := is.Create(config)
403 403
 		if err != nil {
404
-			return err
404
+			logrus.Warnf("Failed to restore custom image %s with error: %s.", name, err.Error)
405
+			logrus.Warnf("Skipping image %s...", name)
406
+			continue
405 407
 		}
406 408
 
407 409
 		if err := rs.AddTag(ref, id, true); err != nil {
... ...
@@ -454,7 +454,7 @@ func (d *Driver) GetCustomImageInfos() ([]CustomImageInfo, error) {
454 454
 		imageData.ID = id
455 455
 
456 456
 		// For now, hard code that all base images except nanoserver depend on win32k support
457
-		if imageData.Name != "nanoserver" {
457
+		if imageData.Name != "NanoServer" {
458 458
 			imageData.OSFeatures = append(imageData.OSFeatures, "win32k")
459 459
 		}
460 460