I thought I would start a thread for those of us installing Lion DP2 and running into issues modifying the Distribution script inside OSInstall.mpkg
I will post any progress that I make here as this seems to be a common issue with DP2. There is no more PlatformSupport file in S/L/Core Services.
I first attempted removing lines in the script regarding checks but I would hit the "Could not install" note in the installer stating Javascript errors.
UPDATE: I have succeeded by only changing a few of the return false lines to return true. I only changed them in regards to CPU check, ram check, and board ID. I'm installing now and I can provide more detail on what I changed shortly.
here is a tutorial on extractive the said mpkg
http://hints.macworl...071026083746346
17 replies to this topic
#1
Posted 03 April 2011 - 05:16 AM
#2
Posted 03 April 2011 - 07:15 AM
So what did you change? and are you using iboot or xpc?
#3
Posted 03 April 2011 - 07:37 AM
The first group of changes was within SupportedPlatform function entry.
function isSupportedPlatform(){
var platformSupportValues=["Mac-F2268DC8","Mac-F22C86C8","Mac-F22587C8","Mac-F2218FA9","Mac-F2218EA9","Mac-F42D86A9","Mac-F22C8AC8","Mac-F22586C8","Mac-942B59F58194171B","Mac-F226BEC8","Mac-F4218FC8","Mac-942459F5819B171B","Mac-F4218EC8","Mac-F2208EC8","Mac-F22C89C8","Mac-F22587A1","Mac-F221DCC8","Mac-F42388C8","Mac-F223BEC8","Mac-F4238CC8","Mac-F222BEC8","Mac-F227BEC8","Mac-F4208AC8","Mac-F22788A9","Mac-F4238BC8","Mac-F221BEC8","Mac-F2238AC8","Mac-F4208EAA","Mac-F22788C8","Mac-F22589C8","Mac-F4228EC8","Mac-F22788AA","Mac-F42C86C8","Mac-F4208CA9","Mac-942C5DF58193131B","Mac-F2238BAE","Mac-F42289C8","Mac-F2268CC8","Mac-F4208DC8","Mac-F2218FC8","Mac-F2218EC8","Mac-F4208DA9","Mac-F42D89C8","Mac-F4208CAA","Mac-F42D89A9","Mac-F2268AC8","Mac-F42C89C8","Mac-942452F5819B1C1B","Mac-F42786A9","Mac-F42D88C8","Mac-F42187C8","Mac-94245B3640C91C81","Mac-F42D86C8","Mac-F2268EC8","Mac-F2268DAE","Mac-F42C8CC8","Mac-F42C88C8","Mac-94245A3940C91C80","Mac-F42386C8","Mac-942B5BF58194151B","Mac-F42189C8"];
var boardID = system.ioregistry.fromPath('IOService:/')['board-id'];
if( !boardID || platformSupportValues.length ==0 ) {
return [color="#FF0000"]false[/color]
}
for( var i = 0; i < platformSupportValues.length; i++ ){
if( boardID == platformSupportValues[i] ){
return true;
}
}
return [color="#FF0000"]false[/color];
}
Next I made changes inside InstallCheckScript function entry.
function installCheckScript(){
try{
var machineType = system.ioregistry.fromPath('IODeviceTree:/')['compatible'];
if (typeof(isFNI) == "undefined" && typeof(hwbeInstallCheck) != "undefined") {
if (!hwbeInstallCheck()) {
return[color="#FF0000"] false[/color];
}
}
if(!hasAtLeastRam(minRam)){
my.result.message = system.localizedStringWithFormat('IC_RAM_message');
my.result.type = 'Fatal';
return[color="#FF0000"] false[/color];
}
if(!is64bit()){
my.result.message = system.localizedStringWithFormat('IC_Cannot_Install');
my.result.type = 'Fatal';
return [color="#FF0000"]false[/color];
}
if (system.compareVersions(system.version.ProductVersion, '10.7') < 0 && system.env.COMMAND_LINE_INSTALL) {
my.result.message = system.localizedStringWithFormat('IC_Command_Line_message', '10.7');
my.result.type = 'Fatal';
return [color="#FF0000"]false[/color];
}
if(!isSupportedPlatform()){
my.result.message = system.localizedStringWithFormat('IC_Cannot_Install');
my.result.type = 'Fatal';
return [color="#FF0000"]false[/color];
}
if (typeof(findBJPrinters) != "undefined") findBJPrinters();
} catch (e) {
system.log('installCheckScript threw exception ' + e);
}
return true;
}
That was it. The rest of the script deals with Upgrade versions and Languages, etc. All the falses highlighted in RED I changed to true. This led to an install from iBoot 1.4 - i'm still dealing with board ID issues during boot of the install however.
I'll also add that I set my BIOS settings for the CPU to defaults (no O/C) and Removed 2 sticks of RAM to make 4GB in order to fix the spinning red ball issue during the installer.
#4
Posted 03 April 2011 - 08:17 AM
dp2 actually does create the platformsupport.plist after you install so don't forget to delete it.
I've got it up and running but it's super slow and beachballs all the time. Has anyone actually gotten netkas's new pcefi to work?
Update: Switched from boot to the new pcefi and it's now silky smooth
I've got it up and running but it's super slow and beachballs all the time. Has anyone actually gotten netkas's new pcefi to work?
Update: Switched from boot to the new pcefi and it's now silky smooth
#5
Posted 03 April 2011 - 08:52 AM
wow you're right about the platformsupport.plist in S/L/C - I must have got confused looking for it in Base System. This is probably why I'm getting a board Id error during boot. gonna try tomorrow thanks for this. DP1 ran okay - lots of crashes in safari and memory issues (even with 6gb?) hoping this will run better.
#6
Posted 03 April 2011 - 12:04 PM
Use latest Netkas's boot, it has a built-in bouard-ID-checking patch,
so no need to mess up with modifying OSInstall.mpkg anymore
The new bootloader does it all for us, all thank Netkas for this !
so no need to mess up with modifying OSInstall.mpkg anymore
The new bootloader does it all for us, all thank Netkas for this !
#7
Posted 03 April 2011 - 03:43 PM
MacFanatic76, on Apr 3 2011, 02:04 PM, said:
Use latest Netkas's boot, it has a built-in bouard-ID-checking patch,
so no need to mess up with modifying OSInstall.mpkg anymore
The new bootloader does it all for us, all thank Netkas for this !
so no need to mess up with modifying OSInstall.mpkg anymore
The new bootloader does it all for us, all thank Netkas for this !
how you have used the netkas's bootloader?
I tried to use it but it not work, probably i wrong something.
thank you
#8
Posted 03 April 2011 - 04:42 PM
I stuck with iBoot and seem to be up and running now. Patching OSInstall was not difficult for me.
#9
Posted 03 April 2011 - 07:21 PM
Any help what to do ?
I ran Lion DP1 and want to update to DP2 (no server installed)...
I use Chameleon + Netkas' EFI file to boot up.
Screen_Shot_2011_04_03_at_21.20.09.png 328.58K
168 downloads
I ran Lion DP1 and want to update to DP2 (no server installed)...
I use Chameleon + Netkas' EFI file to boot up.
Screen_Shot_2011_04_03_at_21.20.09.png 328.58K
168 downloads
#10
Posted 05 April 2011 - 04:26 PM
brxxthe
you have to patch OSInstall before or after the installation?
Would it be possible to upload an already patched OSInstall.mpkg?
Thanks
you have to patch OSInstall before or after the installation?
Would it be possible to upload an already patched OSInstall.mpkg?
Thanks
#11
Posted 06 April 2011 - 04:27 AM
DP 2 is way buggier than DP 1, Installed it on my MBP and had to get rid of it. Oh and that iCal "theme" is stupid.
#12
Posted 09 April 2011 - 02:56 AM
whityini, on Apr 5 2011, 04:26 PM, said:
brxxthe
you have to patch OSInstall before or after the installation?
Would it be possible to upload an already patched OSInstall.mpkg?
Thanks
you have to patch OSInstall before or after the installation?
Would it be possible to upload an already patched OSInstall.mpkg?
Thanks
hola, this is a patched osinstall (mac os lion lastest build)
patched
there is a boot file too
#16
Posted 12 April 2011 - 01:03 PM
rooftopz, on Apr 9 2011, 03:56 AM, said:
The >patched< works for me. Installed DP2 on a separate GUID HD using iBoot 1.5a. But it gives me sluggish behavior and beachballs. That could be related to the missing Realtek implementation and and malfunctioning Wi-Fi.
I would love to check out Netkas new booter but I'm unable to compile it from the sources (the normal RC3 did not word for me)
>there is a boot file too< a DL link would be appreciated.
#17
Posted 12 April 2011 - 08:21 PM
I try to install DP2 whit this tuto http://www.insanelym...howtopic=250104
on a clean HD but! I get this message osx 10.7 can not be installed on this computer
If you want to restore your system from a time machine backupo click restore from backup!!
how can i fix this Please somebody helpme !
Thanks Advanced
on a clean HD but! I get this message osx 10.7 can not be installed on this computer
If you want to restore your system from a time machine backupo click restore from backup!!
how can i fix this Please somebody helpme !
Thanks Advanced
Attached Files
#18
Posted 13 April 2011 - 10:40 AM
hi
this tuto is for DP 1 but not for DP 2 !!! To install DP 2 , you need to change OSInstall.mpkg from your DP 2 install with a patched OSInstall.mpkg !!!
this tuto is for DP 1 but not for DP 2 !!! To install DP 2 , you need to change OSInstall.mpkg from your DP 2 install with a patched OSInstall.mpkg !!!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



Sign In
Create Account









