<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ignite clone golden image /etc/hosts preserve in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789316#M508302</link>
    <description>while creating image try -x exclude option for /etc/hosts file, so this won't be included in image.</description>
    <pubDate>Tue, 16 May 2006 22:12:41 GMT</pubDate>
    <dc:creator>Mridul Shrivastava</dc:creator>
    <dc:date>2006-05-16T22:12:41Z</dc:date>
    <item>
      <title>ignite clone golden image /etc/hosts preserve</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789315#M508301</link>
      <description>Hi,  &lt;BR /&gt;&lt;BR /&gt;We're running HPUX 11.11 and C.6.7.79 ignite.  &lt;BR /&gt;&lt;BR /&gt;Thank you for the related 28 Nov 05 post by Bob Vance.&lt;BR /&gt;&lt;BR /&gt;We’ve been running make_sys_image at the default run level.&lt;BR /&gt;&lt;BR /&gt;Our goal is to apply an identical image to up to 400 identical HP rp3410s.  We have a golden image and can apply it, but have questions.&lt;BR /&gt;&lt;BR /&gt;We would like to preserve our lengthy /etc/hosts file and apply it to the clones with only modification for hostname and IP.  &lt;BR /&gt;&lt;BR /&gt;Uncommenting "save_file /etc/nsswitch.conf" in our os_arch_post_l file does transfer the file to the clone.  But the same process not preserve the /etc/hosts file.  Even though it looks like it should according to our interpretation of the comments in the os_arch_post_l file, we get just the loopback address.  We’ve tried save_file and merge_file but no luck.  I see hosts in the excluded_files list, but not nsswitch.conf so apparently they are handled differently.&lt;BR /&gt;&lt;BR /&gt;What is the best way to preserve the /etc/hosts file?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tim&lt;BR /&gt;</description>
      <pubDate>Tue, 16 May 2006 17:05:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789315#M508301</guid>
      <dc:creator>Tim Heckel</dc:creator>
      <dc:date>2006-05-16T17:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: ignite clone golden image /etc/hosts preserve</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789316#M508302</link>
      <description>while creating image try -x exclude option for /etc/hosts file, so this won't be included in image.</description>
      <pubDate>Tue, 16 May 2006 22:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789316#M508302</guid>
      <dc:creator>Mridul Shrivastava</dc:creator>
      <dc:date>2006-05-16T22:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: ignite clone golden image /etc/hosts preserve</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789317#M508303</link>
      <description>Shalom Time,&lt;BR /&gt;&lt;BR /&gt;Golden images excluded the /etc/hosts file when  I last used it. Maybe I'm wrong.&lt;BR /&gt;&lt;BR /&gt;There is a configuration file to list what files to include and exclude.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.google.com/url?sa=t&amp;amp;ct=res&amp;amp;cd=1&amp;amp;url=http%3A%2F%2Fus-support3.external.hp.com%2Fiv%2Fdata%2Fdocuments%2FDE_SW_UX_swrec_EN_01_E%2FIgnite-UX.pdf&amp;amp;ei=ArhqRPu7J7rIwQHu9oAt&amp;amp;sig2=SXYXS4K6Eu0_F25B82TOMg" target="_blank"&gt;http://www.google.com/url?sa=t&amp;amp;ct=res&amp;amp;cd=1&amp;amp;url=http%3A%2F%2Fus-support3.external.hp.com%2Fiv%2Fdata%2Fdocuments%2FDE_SW_UX_swrec_EN_01_E%2FIgnite-UX.pdf&amp;amp;ei=ArhqRPu7J7rIwQHu9oAt&amp;amp;sig2=SXYXS4K6Eu0_F25B82TOMg&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;That link mentions this topic.&lt;BR /&gt;&lt;BR /&gt;I'd also look into a post install script that copies the /etc/hosts file you want after the image is laid down. That would do the trick.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 17 May 2006 00:44:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789317#M508303</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-05-17T00:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: ignite clone golden image /etc/hosts preserve</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789318#M508304</link>
      <description>Hi Mridul,&lt;BR /&gt;Please expand on your comment.  We've read the man page for make_sys_image several times and see no way to include the /etc/hosts file, except setting run level at 1 and specifying the files to exclude.&lt;BR /&gt;Hi Steven,&lt;BR /&gt;We're unable to follow the link you provided.  Can you double-check it and re-list if necessary?&lt;BR /&gt;Thanks to you both for your postings.&lt;BR /&gt;Best regards,&lt;BR /&gt;Tim</description>
      <pubDate>Thu, 18 May 2006 12:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789318#M508304</guid>
      <dc:creator>Tim Heckel</dc:creator>
      <dc:date>2006-05-18T12:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: ignite clone golden image /etc/hosts preserve</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789319#M508305</link>
      <description>Option 1:&lt;BR /&gt;Since you already have a golden image that you want to tweak, the easiest thing to do is tidy up the /etc/hosts file after ignite with a post_config_script.  This is what I do.  &lt;BR /&gt;- I have a simple script, say "fix_hosts", that I always run after ignite.&lt;BR /&gt;- I put this script in /var/opt/ignite/scripts/ on my Ignite server&lt;BR /&gt;- I use the syntax &lt;BR /&gt;post_config_script += "/var/opt/ignite/scripts/fix_hosts" in my config.local file to always run it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Option 2:&lt;BR /&gt;The make_sys_image command is a shell &lt;BR /&gt;script.  You can make a copy of it, and make it your own via direct edits.&lt;BR /&gt;&lt;BR /&gt;Take a look at the code, the LEVEL2_RESET variable defines the files that get blown away to make the clone/image generic.  /etc/hosts is one of those.  You could remove that line from a local copy to preserve the /etc/hosts file.  However, I am not sure if the machine-specific /etc/hosts entries will be cleaned up at Ignite time.  Could still be troublesome to get the right stuff in there.</description>
      <pubDate>Thu, 18 May 2006 14:52:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789319#M508305</guid>
      <dc:creator>Scot Bean</dc:creator>
      <dc:date>2006-05-18T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: ignite clone golden image /etc/hosts preserve</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789320#M508306</link>
      <description>Thank you Scot, that is exactly what I needed. I modified a copy of make_sys_image to include the files in the image, then modified my version of os_arch_post_l to save_file them.  Best regards, Tim</description>
      <pubDate>Wed, 31 May 2006 14:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789320#M508306</guid>
      <dc:creator>Tim Heckel</dc:creator>
      <dc:date>2006-05-31T14:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: ignite clone golden image /etc/hosts preserve</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789321#M508307</link>
      <description>OK, but I would have used my own post ignite script rather than modifing the main ignite one.&lt;BR /&gt;&lt;BR /&gt;Risks: watch out when you install a new version of ignite, it will blow away your edits.</description>
      <pubDate>Wed, 31 May 2006 14:36:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-clone-golden-image-etc-hosts-preserve/m-p/3789321#M508307</guid>
      <dc:creator>Scot Bean</dc:creator>
      <dc:date>2006-05-31T14:36:17Z</dc:date>
    </item>
  </channel>
</rss>

