Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.

10.9.x NBI created in 10.10.x won't boot #16

Closed
peterquest opened this issue Feb 26, 2015 · 7 comments
Closed

10.9.x NBI created in 10.10.x won't boot #16

peterquest opened this issue Feb 26, 2015 · 7 comments
Assignees
Labels
Milestone

Comments

@peterquest
Copy link

Created a 10.9.5 NBI using a base OS.dmg created with AutoDMG on a machine running 10.10.2.

Any time I try to boot using this nbi, I get 'Error loading kernelcache (0xe)' despite the fact that kernelcache is in the proper location with the proper permissions.

@justinrummel
Copy link

I thought best practices would be use the same OS for all. Thus:

While running Mavericks, create a OSX-10.9.5.dmg via AutoDMG, then create a 10.9.5 nbi using AutoCasperNBI.

@peterquest
Copy link
Author

I knew that was the case for AutoDMG, but I wasn't sure if that applied to AutoCasperNBI as well (though I'm not sure why it wouldn't..)

I can confirm that using a 10.10.1 OS.dmg worked as intended.

@peterquest
Copy link
Author

from ##osx-server on freenode:

11:10 @macmule p_q: cool.. so it's 10.10 creating a 10.9 NBI then.. please log an issue!
11:11 @macmule p_q: i suspect the issue is the cache reduction i put in

for contextual bread crumbs :P

@macmule
Copy link
Owner

macmule commented Feb 28, 2015

As mentioned on JN, same OS isn't needed.

As mentioned on IRC, i'll remove the cache reduction on 10.10 & will add to the beta of the next release (there are a few things in there).

@macmule macmule added the bug label Feb 28, 2015
@macmule macmule self-assigned this Feb 28, 2015
@macmule macmule modified the milestone: 1.1.5 Feb 28, 2015
@macmule
Copy link
Owner

macmule commented Mar 1, 2015

Ok, well seems that YoYo has changed the compression format for kernelcache.. A bread crumb to follow, perhaps:

https://pikeralpha.wordpress.com/2014/06/04/os-x-10-10-yosemite-dp1-kernelcache/

@macmule
Copy link
Owner

macmule commented Mar 1, 2015

Ok, I think I have found a workaround.

Can you try the 4 commands below?: (Swap NBI_NAME for your NBI's name)

sudo /usr/bin/hdiutil attach /Library/NetBoot/NetBootSP0/NBI_NAME.nbi/NetBoot.dmg -owners on

sudo touch /Volumes/NBI_NAME/System/Library/Extensions

sudo /Volumes/NBI_NAME/usr/sbin/kextcache -arch x86_64 -L -N -K /Volumes/NBI_NAME/mach_kernel -c /Library/NetBoot/NetBootSP0/NBI_NAME.nbi/i386/x86_64/kernelcache /Volumes/NBI_NAME/System/Library/Extensions/

sudo /usr/bin/hdiutil detach /Library/NetBoot/NetBootSP0/NBI_NAME.nbi/NetBoot.dmg

That should generate the kernelcache file using 10.9's tool, so the 10.9 NBI should then be NetBoot-able

@macmule
Copy link
Owner

macmule commented Mar 2, 2015

Resolved in 1.1.5, seems a change with 10.10.2's kextcache as it was erroring on unsigned kext's in 10.9.x.

Resolution was to use the kextcache found on the NBI we're creating.

@macmule macmule closed this as completed Mar 2, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants