On Fri 13 Feb 2009 at 12:02PM, Steven Lau wrote:
> Yes, I did this on live-cd .... so pkg not support running on live-cd
> environment ... it seems like a bug ???
>
> -S
It should work find if you're using an alternate image. But
the image you are trying to change is on read-only media.
What do you want to actually do?
There is indeed a bug here: the command should print out
a proper error message instead of a traceback.
-dp
>
> On 02/13/09 11:40 AM, Shawn Walker wrote:
> >Steven Lau wrote:
> >>Hmm ... I saw this ... is it bug.
> >>
> >>-S
> >>
> >>
> >>r...@opensolaris:~# pkg set-authority -O http://b28b:8888 test
> >>
> >>Traceback (most recent call last):
> >> File "/usr/bin/pkg", line 2259, in ?
> >> __ret = main_func()
> >> File "/usr/bin/pkg", line 2226, in main_func
> >> return authority_set(img, pargs)
> >> File "/usr/bin/pkg", line 1579, in authority_set
> >> disabled=disable)
> >> File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line
> >>751, in set_authority
> >> self.save_config()
> >> File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line
> >>308, in save_config
> >> self.cfg_cache.write(self.imgdir)
> >> File "/usr/lib/python2.4/vendor-packages/pkg/client/imageconfig.py",
> >>line 243, in write
> >> f = open(thefile, "w")
> >>IOError: [Errno 30] Read-only file system: '/var/pkg/cfg_cache'
> >>
> >>
> >>pkg: This is an internal error. Please let the developers know about
> >>this
> >>problem by filing a bug at http://defect.opensolaris.org and
> >>including the
> >>above traceback and this message. The version of pkg(5) is
> >>'048096a95369'.
> >>r...@opensolaris:~#
> >
> >The traceback is, but it is curious as to why you're seeing that
> >error. Are you trying to set the authority while booted from the
> >LiveCD? If so, I don't believe you can do that.
> >
> >You should file a bug for the traceback.
> >
> >Cheers,
>
> _______________________________________________
> pkg-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
--
Daniel Price, Solaris Kernel Engineering http://blogs.sun.com/dp
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss