<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Converting NetInfo accounts to dslocal</title>
	<atom:link href="http://managingosx.wordpress.com/2008/06/23/converting-netinfo-accounts-to-dslocal/feed/" rel="self" type="application/rss+xml" />
	<link>http://managingosx.wordpress.com/2008/06/23/converting-netinfo-accounts-to-dslocal/</link>
	<description>Trials and Tribulations of an OS X Administrator</description>
	<lastBuildDate>Thu, 24 Dec 2009 15:11:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: This Week on MA.GNOLIA &#171; /home/kOoLiNuS</title>
		<link>http://managingosx.wordpress.com/2008/06/23/converting-netinfo-accounts-to-dslocal/#comment-9719</link>
		<dc:creator>This Week on MA.GNOLIA &#171; /home/kOoLiNuS</dc:creator>
		<pubDate>Sun, 09 Nov 2008 08:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=130#comment-9719</guid>
		<description>[...] Converting NetInfo accounts to dslocal « Managing OS X [...]</description>
		<content:encoded><![CDATA[<p>[...] Converting NetInfo accounts to dslocal « Managing OS X [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Create a Tiger to Leopard Upgrade NetInstall Image &#171; YourMacGuy</title>
		<link>http://managingosx.wordpress.com/2008/06/23/converting-netinfo-accounts-to-dslocal/#comment-9656</link>
		<dc:creator>Create a Tiger to Leopard Upgrade NetInstall Image &#171; YourMacGuy</dc:creator>
		<pubDate>Fri, 25 Jul 2008 19:08:52 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=130#comment-9656</guid>
		<description>[...] Greg Neagle mentions in a comment on his blog, this is a payloadless package that just runs a script called migrateNetInfo, which in turn calls a [...]</description>
		<content:encoded><![CDATA[<p>[...] Greg Neagle mentions in a comment on his blog, this is a payloadless package that just runs a script called migrateNetInfo, which in turn calls a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GregN</title>
		<link>http://managingosx.wordpress.com/2008/06/23/converting-netinfo-accounts-to-dslocal/#comment-9655</link>
		<dc:creator>GregN</dc:creator>
		<pubDate>Tue, 22 Jul 2008 18:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=130#comment-9655</guid>
		<description>Good find!

For those playing along at home, the package pmbuko is referring to can be found on the Leopard install disk at System/Installation/Packages/OSUpgrade.pkg.

It&#039;s a new-style flat package, but we can poke around in the contents by expanding it:

pkutil --expand /path/to/OSUpgrade.pkg /Users/Shared/OSUpgrade.pkg

Now open the /Users/Shared directory and you&#039;ll see a traditional folder-based package.  Show contents and dig down, and you&#039;ll see that it&#039;s a payload-free package - that is - one that installs no files, but exists purely to run scripts.  The script that does the NetInfo to DS upgrade is OSUpgrade.pkg/Scripts/postinstall_actions/migrateNetInfo and it looks like this:

#!/bin/sh

ROOT_DIR=&quot;$3&quot;

./Tools/netInfoToDS &quot;$ROOT_DIR&quot;

So it&#039;s calling  OSUpgrade.pkg/Tools/netInfoToDS with the path to the Volume Leopard is being installed on.

In theory, you could copy this tool and run it yourself; in my quick testing it fails if run on the currently booted volume:

./netInfoToDS /

complains about an invalid datastore during an openDatabaseForWriting call.  So it won&#039;t work as a replacement for my script, which runs on the currently booted volume.  Still, if we can get it to work, it&#039;s probably a better technique than mine - hopefully Apple has handled the edge cases better than me, and converts additional items beyond local users.</description>
		<content:encoded><![CDATA[<p>Good find!</p>
<p>For those playing along at home, the package pmbuko is referring to can be found on the Leopard install disk at System/Installation/Packages/OSUpgrade.pkg.</p>
<p>It&#8217;s a new-style flat package, but we can poke around in the contents by expanding it:</p>
<p>pkutil &#8211;expand /path/to/OSUpgrade.pkg /Users/Shared/OSUpgrade.pkg</p>
<p>Now open the /Users/Shared directory and you&#8217;ll see a traditional folder-based package.  Show contents and dig down, and you&#8217;ll see that it&#8217;s a payload-free package &#8211; that is &#8211; one that installs no files, but exists purely to run scripts.  The script that does the NetInfo to DS upgrade is OSUpgrade.pkg/Scripts/postinstall_actions/migrateNetInfo and it looks like this:</p>
<p>#!/bin/sh</p>
<p>ROOT_DIR=&#8221;$3&#8243;</p>
<p>./Tools/netInfoToDS &#8220;$ROOT_DIR&#8221;</p>
<p>So it&#8217;s calling  OSUpgrade.pkg/Tools/netInfoToDS with the path to the Volume Leopard is being installed on.</p>
<p>In theory, you could copy this tool and run it yourself; in my quick testing it fails if run on the currently booted volume:</p>
<p>./netInfoToDS /</p>
<p>complains about an invalid datastore during an openDatabaseForWriting call.  So it won&#8217;t work as a replacement for my script, which runs on the currently booted volume.  Still, if we can get it to work, it&#8217;s probably a better technique than mine &#8211; hopefully Apple has handled the edge cases better than me, and converts additional items beyond local users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pmbuko</title>
		<link>http://managingosx.wordpress.com/2008/06/23/converting-netinfo-accounts-to-dslocal/#comment-9654</link>
		<dc:creator>pmbuko</dc:creator>
		<pubDate>Tue, 22 Jul 2008 18:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://managingosx.wordpress.com/?p=130#comment-9654</guid>
		<description>Greg, the NetInfo to dslocal account conversion can also be done by using the OSUpgrade.pkg package located on Leopard retail discs (and somewhat curiously on bundled install discs) in the hidden System/Installation directory. I built my in-place Tiger-&gt;Leopard upgrade with Leopard&#039;s SIU and dumped this package into the workflow. Works like a charm!</description>
		<content:encoded><![CDATA[<p>Greg, the NetInfo to dslocal account conversion can also be done by using the OSUpgrade.pkg package located on Leopard retail discs (and somewhat curiously on bundled install discs) in the hidden System/Installation directory. I built my in-place Tiger-&gt;Leopard upgrade with Leopard&#8217;s SIU and dumped this package into the workflow. Works like a charm!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
