General Mac OS X Discussion General Apple and Mac OS X Discussion

Reply
 
LinkBack Thread Tools Display Modes
  (#61) Old
Guru
 
meklort's Avatar
 
Posts: 1,353
Join Date: Feb 2009
Location: Colorado, USA
Send a message via AIM to meklort Send a message via MSN to meklort Send a message via Yahoo to meklort
Default 06-20-2009, 07:28 PM

Quote:
Originally Posted by bmaltais View Post
I think I have successfully modified OSInstall.pkg (not OSInstall.mpkg) and injected

/NetbookInstallerCLI.app/Contents/MacOS/NetbookInstallerCLI $3

into the postinstall script.

I am currently running a fresh Install based on this mod and will see if I end up with a properly running system. If it it then I think I will be able to script the modifications required to OSInstall.pkg into something like "NetbookBootMaker".
Good work. If you want, I can make an obj-c version of the boot maker (and hopefully after that, a windows version).

EDIT: I believe I have fixed the audio bug(s), here is an updated version: http://files.getdropbox.com/u/863180...stallerCLI.zip
I'm testing it right now


Dell Mini 9 | Mac OS X 10.6.5 | 2 GB RAM | 32 GB Buffalo SSD | BIOS A05
Dell Mini 10v | Mac OS X 10.6.5 | 1 GB RAM | 160 GB HDD | BIOS A06
My Blog | NetbookInstaller code repository | NetbookInstaller Website | Want a Lockerz.com invite? message me.
Reply With Quote
  (#62) Old
Expert Member
 
Posts: 962
Join Date: Dec 2008
Default 06-20-2009, 07:42 PM

Quote:
Originally Posted by meklort View Post
Good work. If you want, I can make an obj-c version of the boot maker (and hopefully after that, a windows version).
I have reached install Nirvana! The mod I made to OSInstall.pkg worked beautifully! I installed OSX just like one would expect, rebooted after the "Failed" message and was granted by a fully bootable install!

This is going to be so easy for people!

I thing making an objective-C version of NetbookBootMaker would be spectacular.

I need to work on automating the modifications of OSInstall.pkg now. Hopefully it is just a script that can be easilly ported to Obj-C.


Dell Mini 9
8GB SSD, 1GB RAM
OS X 10.5.6
Reply With Quote
  (#63) Old
Guru
 
meklort's Avatar
 
Posts: 1,353
Join Date: Feb 2009
Location: Colorado, USA
Send a message via AIM to meklort Send a message via MSN to meklort Send a message via Yahoo to meklort
Default 06-20-2009, 07:45 PM

I'll start working on an obj-c version right away.

Also, the last version I posted does allow audio to work perfectly now.

I still have a few changes that I want to make to that package (mainly including the correct touchpad version), but it works fine as is.


Dell Mini 9 | Mac OS X 10.6.5 | 2 GB RAM | 32 GB Buffalo SSD | BIOS A05
Dell Mini 10v | Mac OS X 10.6.5 | 1 GB RAM | 160 GB HDD | BIOS A06
My Blog | NetbookInstaller code repository | NetbookInstaller Website | Want a Lockerz.com invite? message me.
Reply With Quote
  (#64) Old
Expert Member
 
Posts: 962
Join Date: Dec 2008
Default 06-20-2009, 08:58 PM

Argg!!! I ran a test version of the NetbookBootMaker on my main iMac partition and now I can't install anything...

I need to re-install from scratch!

That will set me back good couple of hours!


Dell Mini 9
8GB SSD, 1GB RAM
OS X 10.5.6
Reply With Quote
  (#65) Old
Guru
 
meklort's Avatar
 
Posts: 1,353
Join Date: Feb 2009
Location: Colorado, USA
Send a message via AIM to meklort Send a message via MSN to meklort Send a message via Yahoo to meklort
Default 06-20-2009, 09:57 PM

I think I'll just reuse the same code from the installer to make the boot maker.
I'll cave it patch the files included on the install dvd instead of on the running machine, so that it can boot with out any problems.

I really only need to make the gui for it and the dropdown menu with the possible install option (excluding / of course).

After that I'll just add a method to patch the OSInstall.pkg file.

This way, it'll be one download that includes everything one, instead of three times for ~3 mb instead of 10mb like the current version of the boot maker. I'll also make it include a copy of the gui interface for the post install.


Dell Mini 9 | Mac OS X 10.6.5 | 2 GB RAM | 32 GB Buffalo SSD | BIOS A05
Dell Mini 10v | Mac OS X 10.6.5 | 1 GB RAM | 160 GB HDD | BIOS A06
My Blog | NetbookInstaller code repository | NetbookInstaller Website | Want a Lockerz.com invite? message me.
Reply With Quote
  (#66) Old
Expert Member
 
Posts: 962
Join Date: Dec 2008
Default 06-20-2009, 11:35 PM

Here is what you need to do to patch the OSInstall.pkg:

pkgutil --expand $3/System/Installation/Packages/OSInstall.pkg /tmp/OSInstall
cp $3/Extra/postinstall /tmp/OSInstall/Scripts/postinstall_actions/postinstall
mv $3/System/Installation/Packages/OSInstall.pkg $3/System/Installation/Packages/OSInstall.pkg.orig
pkgutil --flatten /tmp/OSInstall $3/System/Installation/Packages/OSInstall.pkg

I will add the postinstall. I can't upload so here is the content of it. You will see that I put the NetbookInstallerCLI in /Applications:

#!/bin/sh

"./Tools/SetHidden" "$3" \
"./hidden_MacOS9" &>/dev/null

if [ -e "$3/System/Library/Caches/com.apple.kernelcaches" ]; then
/bin/rm -rf "$3/System/Library/Caches/com.apple.kernelcaches"
fi

if [ "x$CF_USER_DATA_STRING" != "x" ]; then
echo "$CF_USER_DATA_STRING" > "$3/var/root/.CFUserTextEncoding";
"$3/usr/sbin/chown" -f root:wheel "$3/var/root/.CFUserTextEncoding";
"$3/bin/chmod" -f 644 "$3/var/root/.CFUserTextEncoding";
fi

if [ -e "./SetNVRamForDebug" ] ; then
"./SetNVRamForDebug" "$1" "$2" "$3" "$4"
fi

if [ -e "./Tools/notice.txt" ]; then
cp ./Tools/notice.txt "$3"/tmp/ImportantInformation.txt
fi

logger -p install.info "Running NetbookInstaller"
/Applications/NetbookInstallerCLI.app/Contents/MacOS/NetbookInstallerCLI $3

logger -p install.info "Running kextcache -k $3/System/Library/Extensions"
/usr/bin/touch "$3/System/Library/Extensions"
/usr/sbin/kextcache -k "$3/System/Library/Extensions"

logger -p install.info "Running ifcstart"
chroot "$3" "/usr/libexec/ifcstart"

logger -p install.info "Running update_dyld_shared_cache"
/usr/bin/update_dyld_shared_cache -root "$3"

#SYSCTL="/usr/sbin/sysctl"
#BOOTCACHE_CMD="/usr/sbin/BootCacheControl"
#
#BYTE_ORDER=`$SYSCTL -n hw.byteorder`;
#if [ $BYTE_ORDER = "1234" ]; then
# BOOTCACHE_FILE="./Tools/BootCache_playlist_in_i386";
#fi
#
#if [ $BYTE_ORDER = "4321" ]; then
# BOOTCACHE_FILE="./Tools/BootCache_playlist_in_ppc";
#fi
#
#$BOOTCACHE_CMD -b 4096 -f "$3"/var/db/BootCache.playlist generate "$3" < $BOOTCACHE_FILE

exit 0


Dell Mini 9
8GB SSD, 1GB RAM
OS X 10.5.6
Reply With Quote
  (#67) Old
Guru
 
meklort's Avatar
 
Posts: 1,353
Join Date: Feb 2009
Location: Colorado, USA
Send a message via AIM to meklort Send a message via MSN to meklort Send a message via Yahoo to meklort
Default 06-20-2009, 11:44 PM

Thanks for the info, I should have something ready today or tomorrow.


Dell Mini 9 | Mac OS X 10.6.5 | 2 GB RAM | 32 GB Buffalo SSD | BIOS A05
Dell Mini 10v | Mac OS X 10.6.5 | 1 GB RAM | 160 GB HDD | BIOS A06
My Blog | NetbookInstaller code repository | NetbookInstaller Website | Want a Lockerz.com invite? message me.
Reply With Quote
  (#68) Old
Expert Member
 
Posts: 692
Join Date: Mar 2009
Default 06-20-2009, 11:50 PM

I've been watching this thread with some interest.

One question though. In making it so easy for a one step install how easy will it be to do a dual/triple boot install. A number of the methods involve modifying the OS X install DVD to allow an install onto MBR partitions. I believe the specific fix is just to remove a test of the type of drive for the install. (Its been more than 2 months since I did my install and I've forgotten)


Mini1: Vostro A90, Black, 2G, 1.3 Webcam, Bluetooth, 64G SuperTalent, OS X 10.6.4
Mini2: Mini9, Black, 2G, 0.3 Webcam, Bluetooth, 32G RunCore, OS X/Win 7, internal PCI-e SHDC Reader
Mini3: Mini10v. Black, 2G, Webcam, 640G HD, OS X 10.5.8/Win 7/Ubuntu [Hibernate w/NBI 0.8.3 RC4]
Dropbox Referral
Reply With Quote
  (#69) Old
Expert Member
 
Posts: 962
Join Date: Dec 2008
Default 06-21-2009, 12:12 AM

Quote:
Originally Posted by bsoplinger1 View Post
I've been watching this thread with some interest.

One question though. In making it so easy for a one step install how easy will it be to do a dual/triple boot install. A number of the methods involve modifying the OS X install DVD to allow an install onto MBR partitions. I believe the specific fix is just to remove a test of the type of drive for the install. (Its been more than 2 months since I did my install and I've forgotten)
In theory you could do the same mod you did. This new method will simply allow for a transparent OSX install on the supported netbook with very minimum hack done to the actual OSX DVD files. The extent of the hack is in one or two post above.


Dell Mini 9
8GB SSD, 1GB RAM
OS X 10.5.6
Reply With Quote
  (#70) Old
Expert Member
 
Posts: 962
Join Date: Dec 2008
Default 06-21-2009, 12:51 AM

Meklort,

I tried a fresh install with your new CLI. There is now audio but for some reason the video did not show up and the trackpad is very sluggish...

Might be caused by the new drivers?


Dell Mini 9
8GB SSD, 1GB RAM
OS X 10.5.6
Reply With Quote
Reply

« DVD/CD sharing in OSX | 8Gb SSD filling up »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.mydellmini.com/forum/general-mac-os-x-discussion/9597-new-osx-install-solution-dell-mini.html
Posted By For Type Date
Netputing » New Netbook OSX Installation Method on it’s Way This thread Refback 06-27-2009 08:49 PM

Copyright © 2008-2011 MyDellMini.com.