Re: Shouldn¹t allow to install on non-Macintosh Volumes
Re: Shouldn¹t allow to install on non-Macintosh Volumes
- Subject: Re: Shouldn¹t allow to install on non-Macintosh Volumes
- From: Karl Kuehn <email@hidden>
- Date: Mon, 05 Sep 2011 10:24:32 -0500
On Sep 5, 2011, at 7:02 AM, Per Olofsson wrote:
>> If by the Macintosh Volume, you mean the Startup Disk, you just need
>> to allow the package to install only on the root volume.
>
> And note that this package will then fail to install with DeployStudio, InstaDMG, and on NetInstall NetRestore images. Whatever dependency you have should should probably be checked with a installation check script instead.
Actually, for command line installs the 'root volume only' marker is totally ignored. So InstaDMG and the others will happily install it. The problem that often occurs in cases like this is that something in the pre- or post-flight scripts assumes that / is the install location, and so gets itself in trouble. The general solution there is to make sure that pre- or post-flight scripts use the $3 input to correctly determine where things should go, and also detect that it is a command line install (the COMMAND_LINE_INSTALL environment variable) and then not do things that would be inappropriate (show dialogs, load kexts, etc).
--
Karl Kuehn
email@hidden _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden