The webrev is at:
http://cr.opensolaris.org/~migi/9363_update_all_user_image_v1/

There are two parts of fix:
- if the be name is entered in the BE name dialog, before performing update all, then we are trying to create be. If this fails (most likely it's user image), then we are re-doing the step, but this time without passing be_name to the api, so it will proceed and perform image-update. The lines 515-525 in the installupdate.py are responsible for this step.

- If there is an user image, then we are passing flag to the installupdate.py to hide the be naming dialog and proceed with image-update.

Because PM and UM are using slightly different method to determine the PKG_IMAGE, two different methods are in place to assume that it's user image. We don't have api call to check if this is the user image, so we need to guess this.

for the PM if the user set -R flag or PKG_IMAGE, we are assuming that it is the user image

for the UM if the image is different then "/" we are assuming that it is the user image

the bottom line is that if the PKG_IMAGE or -R is set to use non existing image or "/" then it will default to "/" image. The be naming dialog will be hidden, so it is not ideal, but it will work fine, just with the default be_name provided by the libbe.

best
Michal
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to