- We may know which image is default through image's info file. (info.ini)
Change-Id: I11c50f50c478098f7ff8fb012e00d050328fcdba
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
throw new IOException();
}
}
- imageList.add(image);
+
+ // Default image is added at first index of image-list.
+ String imageType = image.getType();
+ if (imageType != null && imageType.equals("default")) {
+ imageList.add(0, image);
+
+ } else {
+ imageList.add(image);
+ }
} catch (IOException e) {
EMLogger.getLogger().warning("Failed adding base image.."
+ StringResources.NEW_LINE + "Base Disk Image Path: " + path.getAbsolutePath()