[email protected] wrote: > > > On Thursday, January 15, 2009 11:31am, "Shawn Walker" > <[email protected]> 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. What about current user privileges/roles? Why did you need to check those? Cheers, -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
