On Thursday, January 15, 2009 12:05pm, "Shawn Walker" <[email protected]> 
said:

> [email protected] wrote:
>>
>>
>> On Thursday, January 15, 2009 11:31am, "Shawn Walker"
>>  said:
>>
>>  > [email protected] wrote:
>>  >>
>>  >>
>>  >> On Thursday, January 15, 2009 10:45am, "Shawn Walker"
>>  >> said:
>>  >>
>>  >> > [email protected] wrote:
>>  >> >> yes i am aware of these(they are inline with SVR4 prototype file
>>  >> >> format), we have proper manifest file for our package with all
>>  >> >> attributes set correctly. In the case of IPS what happens if
>>  >> >> : is not exists on a system when a pkg is trying to
>>  >> >> install(initial install ) contents with : ownership. In
>>  >> >> SVR4 packaging we check as part of pre install script we use to check
>>  >> >> for this :, if not exists we create as part of pre install
>>  >> >> phase. In IPS how do we handle these kind of preinstall
>> check/actions.
>>  >> >
>>  >> > If a user or group does not exist on the system when installing files,
>>  >> > installation will fail.
>>  >> >
>>  >> > So, you would want to create a user and group for the files you are
>>  >> > installing, and could do so like this:
>>  >> >
>>  >> > add group groupname=bar
>>  >> > add user username=foo group=bar
>>  >>
>>  >> as part of manifest file? or is it outside of IPS frame work? BTW how
>>  >
>>  > As part of the IPS manifest file, as Brock said.
>>  >
>>  >> do i do simple checks like available free space and current user
>>  >> privileges/roles (is uid 0 ?) before populating files from the pkg?
>>  >
>>  > Why do you need to check available free space or current user
>>  > privileges/roles?
>>
>> want to make sure that we have enough free space to fit pkg contents
>> upfront before populating files.
> 
> You don't need to check free disk space for installing the package;
> pkg(5) should handle that for you.

so pkg install option upfront checks if all the files from  pkg foo can be fit 
in current system/zone ?  What happens halfway through pkg install/upgrade 
fails due to lack of free space? who will rollback  files/attributes ? Typical 
scenario on VPS/vmware/xen . 

> 
> What about current user privileges/roles?  Why did you need to check those?
>

want to make sure the current user is  a  privileged user 
> Cheers,
> --
> Shawn Walker
> 
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to