From: Chris Eckert on
hi,

is there a way in solaris 10 u8 to retrieve a
default (original) config file as shipped with
the installation?

for example /etc/hosts without any user-specific
(post-installation) changes and with original
perms and timestamp?

chris
From: Ian Collins on
On 04/26/10 08:14 AM, Chris Eckert wrote:
> hi,
>
> is there a way in solaris 10 u8 to retrieve a
> default (original) config file as shipped with
> the installation?
>
> for example /etc/hosts without any user-specific
> (post-installation) changes and with original
> perms and timestamp?

Take a snapshot of your root pool before making any changes. Otherwise
no, /etc/hosts is built during the system identification install phase.

--
Ian Collins
From: Chris Eckert on
On 2010-04-25 23:11:49 +0200, Ian Collins <ian-news(a)hotmail.com> said:

> On 04/26/10 08:14 AM, Chris Eckert wrote:
>> hi,
>>
>> is there a way in solaris 10 u8 to retrieve a
>> default (original) config file as shipped with
>> the installation?
>>
>> for example /etc/hosts without any user-specific
>> (post-installation) changes and with original
>> perms and timestamp?
>
> Take a snapshot of your root pool before making any changes. Otherwise
> no, /etc/hosts is built during the system identification install phase.

ok, how do i roll back a single file from a root pool snapshot?

chris

--
CHRIS ECKERT
eckert[at]alphanet.ch - http://www.alphanet.ch/~eckert
gpg public key id 0xD08960E3

From: Ian Collins on
On 04/26/10 09:44 AM, Chris Eckert wrote:
> On 2010-04-25 23:11:49 +0200, Ian Collins <ian-news(a)hotmail.com> said:
>
>> On 04/26/10 08:14 AM, Chris Eckert wrote:
>>> hi,
>>>
>>> is there a way in solaris 10 u8 to retrieve a
>>> default (original) config file as shipped with
>>> the installation?
>>>
>>> for example /etc/hosts without any user-specific
>>> (post-installation) changes and with original
>>> perms and timestamp?
>>
>> Take a snapshot of your root pool before making any changes. Otherwise
>> no, /etc/hosts is built during the system identification install phase.
>
> ok, how do i roll back a single file from a root pool snapshot?

Locate the file under /rpool/.zfs/snapshots and copy it back.

--
Ian Collins
From: Stefan Krueger on
On 2010-04-25, Chris Eckert <eckert(a)alphanet.ch> wrote:
> hi,
>
> is there a way in solaris 10 u8 to retrieve a
> default (original) config file as shipped with
> the installation?
>
> for example /etc/hosts without any user-specific
> (post-installation) changes and with original
> perms and timestamp?
>
> chris

How about using sys-unconfig(1M):

"The sys-unconfig command is used to restore a system's configuration
to an "as-manufactured" state, ready to be reconfigured again."

Although I'm not sure you'll get your install timestamps, for perms
you can use pkgchk's '-f' IIRC

HTH