Re: Another way to check for the root volume?
Re: Another way to check for the root volume?
- Subject: Re: Another way to check for the root volume?
- From: Bill Coderre <email@hidden>
- Date: Tue, 7 Mar 2006 11:38:14 -0800
I don't think anyone will object to me disclosing this Apple copyright code since you have dozens of copies in your receipt directory already:#!/usr/bin/perl
######################################################## my $EXIT_VALUE = 0; ########################################################
DO_CHECKS: { if($ARGV[0] ne "/") { $EXIT_VALUE = (( 1 << 6 ) | ( 1 << 5 ) | 16); last; } }
exit($EXIT_VALUE);
Now remember, don't infringe on Apple's copyrigh, so delete some of the unnecessary lines! (heheh)
This will cause error string 16 in VolumeCheck.strings to be displayed for any non-root volume. The distribution script version is incredibly similar. On Mar 7, 2006, at 6:06 AM, Greg Gunston wrote: I know through PackageMaker you can use the checkbox for Root Volume Only. Is there a way in which you can find the Root Volume with a VolumeCheck script and then tell the installer that this volume is the root and disregard the other mounted volumes? |
_______________________________________________
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