I am getting a traceback when trying to install a package that  
installs a file and a hardlink to that file. The file appears before  
the hardlink in the manifest, in case the order matters:

  OSError: [Errno 2] No such file or directory
pkg: An unexpected error happened during installation: [Errno 2] No  
such file or directory
The Boot Environment opensolaris-2 failed to be updated. A snapshot  
was taken before the failed attempt and is mounted here /tmp/ 
tmpb6HCg3. Use 'beadm activate opensolaris-2_static:-: 
2008-06-30-10:16:18 and reboot if you wish to boot to this BE.
Traceback (most recent call last):
  File "/usr/bin/pkg", line 1458, in ?
    ret = main_func()
  File "/usr/bin/pkg", line 1424, in main_func
    return install(img, pargs)
  File "/usr/bin/pkg", line 473, in install
    img.imageplan.execute()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py",  
line 476, in execute
    p.execute_install(src, dest)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py",  
line 260, in execute_install
    dest.install(self, src)
  File "/usr/lib/python2.4/vendor-packages/pkg/actions/hardlink.py",  
line 78, in install
    os.link(target, path)
OSError: [Errno 2] No such file or directory

Here's the relevant bit of manifest - emacs-22.2 is the file, and  
emacs is a hardlink to it.

bash-3.2$ grep opt/emacs/bin/emacs-22 manifest
file opt/emacs/bin/emacs-22.2 mode=0555 owner=root group=bin path=opt/ 
emacs/bin/emacs-22.2
hardlink path=opt/emacs/bin/emacs target=opt/emacs/bin/emacs-22.2

Cheers,

Chris
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to