Frank Middleton wrote:

> it was suggested I compare the "corrupted" one with a known good one. I
> guess there isn't going to be a way to do that. Oh well :-(.  [ ... ] Any
> suggestions welcome!

Well, you can do this manually ... figure out what package it's in, extract
the sha-1 hash of the file from the package manifest, and slurp the file
down from the package depot:

    $ pkg search -l /lib/libdlpi.so.1
    INDEX      ACTION VALUE            PACKAGE
    path       file   lib/libdlpi.so.1 pkg:/[email protected]
    $ pkg contents -t file -o path,action.hash SUNWcsl | awk '$1 == 
"lib/libdlpi.so.1" {print $2}'
    5b9e4840b5b9875736081d7927cda597aeba8ee7
    $ curl -s 
http://pkg.opensolaris.org/dev/file/0/5b9e4840b5b9875736081d7927cda597aeba8ee7 
| gzip -dc > /tmp/libdlpi.so.1

at which point you can copy it into place, run tests on it, etc.

> # pkg publisher
> PUBLISHER                             TYPE     STATUS   URI
> opensolaris.org          (preferred)  origin   online   
> http://pkg.opensolaris.org/dev/
> opensolaris.org          (preferred)  mirror   online   
> http://pkg-na-2.opensolaris.org/dev/
> opensolarisdev                        origin   online   
> http://pkg.opensolaris.org/dev/
> 
> # pkg -R /a fix SUNWcsl
> Verifying: pkg://opensolarisdev/SUNWcsl                         ERROR
>         file: lib/libdlpi.so.1
>                 Group: 'root (0)' should be 'bin (2)'

This, at least, is indicating there aren't any content problems with the
file, just that the group is wrong.  I'm not sure why zfs would be
complaining.  Make sure you do a zfs scrub, and if you have problems after
that, it's probably worth asking on zfs-discuss.

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

Reply via email to