From: Richard B. Gilbert on 25 Apr 2010 18:17 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? > > chris What problem are you trying to solve? All the files on a newly installed system are created by the installation process. Many of them are on the installation DVD and are simply copied. Some are created and populated during the installation process using data supplied by the person doing the installation. Note that CDs are NOT available for S10; you can download images of the CDs and burn your own. Solaris is distributed either on DVD or by downloading the files that would be supplied on the DVD. The DVD used to be supplied at nominal cost and may still be. Have a look at Sun's web site and see if you can find it. If you are burning your own CDs/DVDs remember that you are burning IMAGES. A common mistake is to burn the image *as a file*. If you do that you wind up with a file system consisting of a director and a single file. It will not boot. The image IS the whole damn thing and if you burn the image you will get a root directory and a number of files. You should be able to retrieve template files from the DVD. (If you can find them!) You may find that some files are created and populated by the installation process rather than simply being copied.
From: Stefaan A Eeckels on 25 Apr 2010 18:49 On Sun, 25 Apr 2010 23:44:27 +0200 Chris Eckert <eckert(a)alphanet.ch> wrote: > On 2010-04-25 23:11:49 +0200, Ian Collins <ian-news(a)hotmail.com> said: > > > 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? > Just 'cp' it back: # ls -l /.zfs/snapshot/install/etc/inet/hosts -r--r--r-- 1 root sys 1049 Mar 20 2009 /.zfs/snapshot/install/etc/inet/hosts # cp /.zfs/snapshot/install/etc/inet/hosts /etc/inet ZFS snapshots are nice. -- Stefaan A Eeckels -- Tener razón es una razón màs para no tener ningùn éxito. --Nicolàs Dàvila
From: Casper H.S. Dik on 26 Apr 2010 04:50 Chris Eckert <eckert(a)alphanet.ch> writes: >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? Because of zones, Solaris 10 squirrels away a pristine copy of volatile/editable files: First find the package it belons to: # pkgchk -l -p /etc/hosts Pathname: /etc/hosts Type: symbolic link Source of link: ./inet/hosts Referenced by the following packages: SUNWcsr Current status: installed # pkgchk -l -p /etc/inet/hosts Pathname: /etc/inet/hosts Type: editted file Expected mode: 0644 Expected owner: root Expected group: sys Referenced by the following packages: SUNWcsr Current status: installed Then you can find the file under the save/pspool directory: /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/inet/hosts Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth.
From: Chris Eckert on 26 Apr 2010 11:28 Casper H.S. Dik <Casper.Dik(a)Sun.COM> wrote: > Then you can find the file under the save/pspool directory: /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/inet/hosts thanks!! -- Chris Eckert (mobile)
From: Chris Eckert on 26 Apr 2010 14:22 On 2010-04-26 10:50:46 +0200, Casper H.S. Dik <Casper.Dik(a)Sun.COM> said: > Then you can find the file under the save/pspool > directory: > > /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/inet/hosts works! perfect answer. many thanks! chris -- CHRIS ECKERT eckert[at]alphanet.ch - http://www.alphanet.ch/~eckert gpg public key id 0xD08960E3
First
|
Prev
|
Pages: 1 2 Prev: autofs still does not map /export/home... Next: How to choose NFS as installation media? |