Shawn Walker wrote: > Alok Aggarwal wrote: >> On Wed, 26 Nov 2008, Jens Deppe wrote: >> >>> Hello, >>> >>> Would it be reasonable to submit an RFE to have similar functionality as >>> what post_install_repo_default_authority provides in the DC, in the AI >>> as well? >>> >>> I don't believe the capability currently exists to be able to install >>> from, say, a local repo, but then have the final installed system be >>> setup to have it's default authority set to something else. >> I think it is entirely reasonable to request >> this functionality. > > I do as well, but be careful here. pkg(5) records what authority a > package is installed from. While this should work, you will want to do > extra verification.
I should probably be clearer: A better alternative might be to use the final authority name, but just change the origin URL. For example, if the final authority name is supposed to be "company.com", then at the beginning set the authority name to "company.com" but set the origin URL to "http://my-special-build-repo/" and post install set the origin url to "http://pkg-repo.company.com/". This allows you to have two different sources for the packages without running into any possible issues or unhappiness with changing the actual authority. It also ensures that the name of any internal build repository you have won't be recorded on the user's system. -- Shawn Walker
