Skip to main content

[pkg-discuss] Re: query re files in /kernel/drv/*.conf

  • From: "Enda o'Connor - Oracle Ireland - Software Engineer" < >
  • To:
  • Subject: [pkg-discuss] Re: query re files in /kernel/drv/*.conf
  • Date: Wed, 27 Mar 2013 13:47:00 +0000

On 03/27/13 12:47, Albert White wrote:
On 27/03/2013 12:19, Enda o'Connor - Oracle Ireland - Software Engineer
wrote:

what is the best way to check if a file in /kernel/drv/*.conf has
changed since s11 FCS to s11.1 latest SRU say?

This is what I do:

  pkg search -af -o chash,path,pkg.fmri
':file:path:/kernel/drv/bmc.conf'
CHASH                                    PATH                PKG.FMRI
75be4d6b06cacebe8815195ba9bb15a10c4e6f98 kernel/drv/bmc.conf
pkg:/driver/management/bmc@0.5.11,5.11-0.175.0.9.0.5.1:20120705T181855Z
75be4d6b06cacebe8815195ba9bb15a10c4e6f98 kernel/drv/bmc.conf
pkg:/driver/management/bmc@0.5.11,5.11-0.175.0.0.0.2.1:20111019T134928Z
f6a4299e0c61262c424c9d2baa71aed95f8f8b45 kernel/drv/bmc.conf
pkg:/driver/management/bmc@0.5.11,5.11-0.151.0.1:20101105T013153Z
1ceaf9d3e1fe76ca8004f58ef66784ac7a55aca1 kernel/drv/bmc.conf
pkg:/driver/management/bmc@0.5.11,5.11-0.175.1.0.0.24.2:20120919T184259Z
f6a4299e0c61262c424c9d2baa71aed95f8f8b45 kernel/drv/bmc.conf
pkg:/driver/management/bmc@0.5.11,5.11-0.151.0.1.9:20110711T173924Z

So no change between 175.0.0 and 175.0.9, but there was a change going
to 175.1

Thanks Al, so from sd.conf this returns a few hits, but I want to limit this to variant.arch=sparc" so that I only see the sd.conf changes for sparc

I want to eliminate these ones
file 4f63392c495e5585b7e7417a5e9e952a1da89236 chash=1685022d13e3e802962e66ef71454d24502a5419 group=sys mode=0644 original_name=SUNWos86r:kernel/drv/sd.conf owner=root path=kernel/drv/sd.conf pkg.csize=305 pkg.size=951 reboot-needed=true variant.arch=i386 variant.opensolaris.zone=global

I tried a few variations on pkg search to search for only sd.conf and variant.arch=sparc" I read the pkg search man page and coudl not see any examples of this, although it did mention boolean operators AND OR, but not sure how to search for
pkg search -af -o chash,path,pkg.fmri ':file:path:/kernel/drv/sd.conf' AND variant.arch=sparc, nothing I tried worked.

Enda

Cheers,
~Al

I want to detect if ssd.conf and sd.conf have changed since s11 FCS
and hence are likely to get overwritten during update and lead to
systems booting without the changes.

I can install s11 FCS and edit them, but interested to see if I can
get this more easily via pkg.

technically the 4 files that are of type preserve in /kernel/drv
probably should not be type preserve, any customisations that need to
go to these 4 should be done via their counterparts in
/etc/driver/drv/*.conf files.

that way, Solaris can deliver changes to say /kernel/drv/bmc.conf
without having to worry about wiping out any customisations, when
system boots it will merge the core /kernel/drv/bmc.conf with
/etc/driver/drv/bmc.conf that way you can customise bmc.conf and still
let solaris deliver changes to it as well.



Enda

not many do on my system that get installed there. Contrasting that with
the contents of /etc/ is interesting:

$ pkg search -l -o preserve,path,pkg.fmri \
':file:path:/etc/*' | grep -v '^'
)

cheers,
tim




[pkg-discuss] query re files in /kernel/drv/*.conf

Enda o'Connor - Oracle Ireland - Software Engineer 03/27/2013

[pkg-discuss] Re: query re files in /kernel/drv/*.conf

Tim Foster 03/27/2013

[pkg-discuss] Re: query re files in /kernel/drv/*.conf

Enda o'Connor - Oracle Ireland - Software Engineer 03/27/2013

[pkg-discuss] Re: query re files in /kernel/drv/*.conf

Albert White 03/27/2013

[pkg-discuss] Re: query re files in /kernel/drv/*.conf

Enda o'Connor - Oracle Ireland - Software Engineer 03/27/2013

[pkg-discuss] Re: query re files in /kernel/drv/*.conf

Albert White 03/27/2013
 
 
Close
loading
Please Confirm
Close