Skip to main content

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

  • From: Tim Foster < >
  • To:
  • Cc: "Enda o'Connor - Oracle Ireland - Software Engineer" < >
  • Subject: [pkg-discuss] Re: query re files in /kernel/drv/*.conf
  • Date: Thu, 28 Mar 2013 01:00:04 +1300

On 03/28/13 12:30 AM, Enda o'Connor - Oracle Ireland - Software Engineer wrote:
So a few products ie OSC deliver scripts that make changes to files in
/kernel/drv/ssd.conf for instance, now this is not the supported way, as
changes go to /etc/driver/drv/ssd.conf, but my question is say we have a
system with a modified /kernel/drv/ssd.conf if we then pkg update to an
SRU or update that is delivering a new /kernel/drv/ssd.conf wwill this

1 cause pkg update to fail

Nope.

or
2 just install the new /kernel/drv/ssd.conf and wipe the customisations

That's what would happen if the new package delivered a version of ssd.conf file that was different to the original file installed by the packaging system (ie. before the user started modifying it) AND if the file wasn't delivered with a 'preserve' attribute, which specifically allows user-modifications to be kept on delivered files. See pkg(5)


As a quick test, you can see which files are packaged this way by doing, eg:

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

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