Jump to content

Lion DP2 - OSInstall.mpkg checks


  • Please log in to reply
17 replies to this topic

#1
brxxthe

brxxthe

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
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

#2
garagethrash

garagethrash

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
So what did you change? and are you using ##### or xpc?

#3
brxxthe

brxxthe

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
here is a list of changes that I made to the Distribution file within OSInstall.mpkg

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 false	}	for( var i = 0; i < platformSupportValues.length; i++ ){	 	if( boardID == platformSupportValues[i] ){				return true;	  	}		}	return false;}

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 false;					}				} 								if(!hasAtLeastRam(minRam)){					my.result.message = system.localizedStringWithFormat('IC_RAM_message');					my.result.type = 'Fatal';					return false;				}								if(!is64bit()){					my.result.message = system.localizedStringWithFormat('IC_Cannot_Install');					my.result.type = 'Fatal';					return false;				}								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 false;				}								if(!isSupportedPlatform()){					my.result.message = system.localizedStringWithFormat('IC_Cannot_Install');					my.result.type = 'Fatal';					return false;				}												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 ##### 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
garagethrash

garagethrash

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
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

#5
brxxthe

brxxthe

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
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
MacFanatic76

MacFanatic76

    InsanelyMac Protégé

  • Members
  • PipPip
  • 62 posts
  • Gender:Male
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 :wacko:

The new bootloader does it all for us, all thank Netkas for this !

#7
x64bitdimension

x64bitdimension

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
  • Gender:Male
  • Location:Italy

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 :P

The new bootloader does it all for us, all thank Netkas for this !

Hi,
how you have used the netkas's bootloader?
I tried to use it but it not work, probably i wrong something.

thank you

#8
brxxthe

brxxthe

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
I stuck with ##### and seem to be up and running now. Patching OSInstall was not difficult for me.

#9
me@home

me@home

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 335 posts
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.


Attached File  Screen_Shot_2011_04_03_at_21.20.09.png   328.58KB   168 downloads

#10
whityini

whityini

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 184 posts
  • Gender:Male
  • Location:Italia
brxxthe

you have to patch OSInstall before or after the installation?

Would it be possible to upload an already patched OSInstall.mpkg?

Thanks

#11
Rob G

Rob G

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 329 posts
  • Gender:Male
  • Location:Logan, Utah
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
rooftopz

rooftopz

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
  • Gender:Male
  • Location:PERU
  • Interests:rooftopz@hotmail.com para hbalr sore experiencias con hackintosh adios :)

brxxthe

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

#13
whityini

whityini

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 184 posts
  • Gender:Male
  • Location:Italia

hola, this is a patched osinstall (mac os lion lastest build)
patched

there is a boot file too

many thanks i'll give it a try
I have to replace the original one, isn't it?

#14
albert E

albert E

    InsanelyMac Protégé

  • Members
  • PipPip
  • 50 posts

hola, this is a patched osinstall (mac os lion lastest build)
patched

there is a boot file too


There is nothing in it - 0 byte(s). :-(

#15
aeneas84

aeneas84

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts

hola, this is a patched osinstall (mac os lion lastest build)
patched

there is a boot file too


is not good for the installation on Mbr hard disk :(

#16
old_eye

old_eye

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

hola, this is a patched osinstall (mac os lion lastest build)
patched

there is a boot file too



The >patched< works for me. Installed DP2 on a separate GUID HD using ##### 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
carlevarino

carlevarino

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
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

Attached Files



#18
fantomas1

fantomas1

    InsanelyMacaholic

  • Supervisors
  • 2,788 posts
  • Gender:Male
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 !!!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy