<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: creating a solaris 8 flash archive boot disk</title>
	<atom:link href="http://www.tech-recipes.com/rx/461/creating-a-solaris-8-flash-archive-boot-disk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/461/creating-a-solaris-8-flash-archive-boot-disk/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sun, 22 Nov 2009 00:56:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: unixdude</title>
		<link>http://www.tech-recipes.com/rx/461/creating-a-solaris-8-flash-archive-boot-disk/comment-page-1/#comment-659</link>
		<dc:creator>unixdude</dc:creator>
		<pubDate>Tue, 14 Sep 2004 07:14:46 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-659</guid>
		<description>Hi.

Just a comment on this otherwise nice script. The delete lines such as:

# remove the packages from the Product directory 
cd /opt/make_os/solaris_8/s0/Solaris_8/Product 
rm -rf *

and 

# remove the configuration files from the .install_config directory 
cd /opt/make_os/solaris_8/s0/.install_config 
rm *

are extremely dangerous. If for some reason the cd command fails (permission problems, missing directories etc), the next command will wipe the rootdisk clean (or at least every file in the directory the command is issued from and all directories below). A much better version would be to do the rm command directly on the directory:

rm -rf /opt/make_os/solaris_8/s0/Solaris_8/Product/*

In this case the rm command will fail if the directory doesn&#039;t exist, and no harm would be done. Another approach would be to test for the existence of the directory prior to issue the commands, and to exit with an error code if the check fails.


Just my 0.02$ :)</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>Just a comment on this otherwise nice script. The delete lines such as:</p>
<p># remove the packages from the Product directory<br />
cd /opt/make_os/solaris_8/s0/Solaris_8/Product<br />
rm -rf *</p>
<p>and </p>
<p># remove the configuration files from the .install_config directory<br />
cd /opt/make_os/solaris_8/s0/.install_config<br />
rm *</p>
<p>are extremely dangerous. If for some reason the cd command fails (permission problems, missing directories etc), the next command will wipe the rootdisk clean (or at least every file in the directory the command is issued from and all directories below). A much better version would be to do the rm command directly on the directory:</p>
<p>rm -rf /opt/make_os/solaris_8/s0/Solaris_8/Product/*</p>
<p>In this case the rm command will fail if the directory doesn&#8217;t exist, and no harm would be done. Another approach would be to test for the existence of the directory prior to issue the commands, and to exit with an error code if the check fails.</p>
<p>Just my 0.02$ :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
