[indiana-discuss] pkg tries to open a file in a wrong location

Shawn Walker swalker at opensolaris.org
Thu Feb 5 21:21:00 PST 2009


Robert Milkowski wrote:
> Hello Shawn,
> 
> Thursday, February 5, 2009, 4:36:55 PM, you wrote:
> 
> SW> Robert Milkowski wrote:
>>> Hi,
>>>
>>>
>>> milek at milek-desktop:~# uname -a
>>> SunOS milek-desktop 5.11 snv_106 i86pc i386 i86pc Solaris
>>> milek at milek-desktop:~# id -u
>>> 0
>>> milek at milek-desktop:~# pwd
>>> /export/home/milek
>>> milek at milek-desktop:~# pkg search audiohd
>>> INDEX      ACTION    VALUE                     PACKAGE
>>> driver_name driver    audiohd                   pkg:/SUNWaudiohd at 0.5.11-0.106
>>> basename   file      kernel/drv/amd64/audiohd  pkg:/SUNWaudiohd at 0.5.11-0.106
>>> basename   file      kernel/drv/audiohd        pkg:/SUNWaudiohd at 0.5.11-0.106
>>> milek at milek-desktop:~# cd /.zfs/snapshot/install/etc/
>>> milek at milek-desktop:/.zfs/snapshot/install/etc# pkg search audiohd
>>> Traceback (most recent call last):
>>>   File "/usr/bin/pkg", line 2259, in ?
>>>     __ret = main_func()
>>>   File "/usr/bin/pkg", line 2198, in main_func
>>>     img.load_config()
>>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 292, in load_config
>>>     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: '/.zfs/snapshot/install/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'.
>>> milek at milek-desktop:/.zfs/snapshot/install/etc#
> 
> SW> Please file a bug at http://defect.opensolaris.org as noted in the error
> SW> text.
> 
> Yeah... right...
> 
> http://defect.opensolaris.org/bz/show_bug.cgi?id=6419

Thanks.  There are two possible bugs here:

1) the traceback

2) the image root finding code that considers your zfs snapshot 
directory fair game; we should probably special case that

Cheers,
-- 
Shawn Walker



More information about the indiana-discuss mailing list