2

Author Topic: Revisit Chameleon's package builder  (Read 144378 times)

0 Members and 5 Guests are viewing this topic.

scrax

  • Member
  • Posts: 61
Re: Revisit Chameleon's package builder
« Reply #105 on: October 07, 2010, 05:04:03 AM »
I'll take a look for the efi installs problems and c.a.b.p
for smbios i've started to add something like the c.a.B.p options to avoid confusion, but for now we can remove the example.

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #106 on: October 10, 2010, 08:15:56 PM »
commit 180

Quote
ifabio: Add mint theme. restored bullet theme. update Polish language update Spanish language Add Chinese language Create a "dummy" folder for a "dummy pkg" language test reason... or maybe I don't need it

also forgot to say "update" italian with mint theme info.

No changes in the script so.. still no work the feature quoted by Blackosx.

Fabio
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #107 on: October 11, 2010, 08:49:33 AM »
commit 180
Add mint theme. restored bullet theme.
Thanks Fabio

No changes in the script so.. still no work the feature quoted by Blackosx.
Is it easy to add back in the previous code for the EFI install which was working from scrax's installer? Or have things changed since then?
« Last Edit: October 11, 2010, 08:56:11 AM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #108 on: October 13, 2010, 02:25:02 AM »
Is it easy to add back in the previous code for the EFI install which was working from scrax's installer? Or have things changed since then?
Hi

The 4 options works in the scrax installer (boot0,boot0hfs,EFI,FAT)?
if yes I copy that part and I merge in my package. (I ask because I can't test that options...)

Fabio

Note... the last background is great.. but if you see it in action and "Enlarge" the installer window it lost the lateral and the botton
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #109 on: October 13, 2010, 09:35:42 AM »
The 4 options works in the scrax installer (boot0,boot0hfs,EFI,FAT)?
Using scrax's latest files on his branch to make Chameleon-2.0-RC5-INSTALLER-r185.pkg
Note: installer does crash sometimes?

Both the FAT32 and HFS+ EFI options work with the com.apple.Boot.plist, theme and kexts being correctly installed.
Note: When selecting the FAT32 EFI option to an HFS+ formatted EFI partition, the files will be installed but the finder shows the mounted volume as "NO NAME"? I guess this is something to do with the FAT32 EFI option does not format the partition?

Also with scrax's installer, a normal boot0 install to system partition - does NOT set active flag!

Note... the last background is great.. but if you see it in action and "Enlarge" the installer window it lost the lateral and the botton
Yes I know...  :P
Unless we can instruct the installer to draw the shading to fit the window then there's no other way when we use an image for the background, unless it can scale/stretch the background when the window is resized?
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #110 on: October 14, 2010, 04:53:43 AM »
ok merge the scrax's script in commit 186.

...untested...

what about this? (or similar...just a test)

Fabio
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #111 on: October 15, 2010, 09:06:05 AM »
Hi Fabio

That background gradation works better and allows the window to be resized - well done :)

I have been running some tests with the EFI options from your latest: Chameleon-2.0-RC5-r186-Standard.pkg and I see the following problems: Installing with either EFI option, I get a boot file and /Extra/com.apple.Boot.plist but no Extensions folder or Theme folder?

And also, one issue which I think still exists with scrax's code is when choosing the EFI option for FAT32 when I know the EFI volume is already formatted as HFS+, the finder will now mount the volume titled "NO NAME" and not "EFI"?  Maybe this is because when selecting FAT32 EFI option, we are not formatting it first (I think that was to not override a user's existing EFI setup).

Idea:
Maybe we could have a checkbox option for formatting the EFI volume if the user wants? Then the script could run either of the following commands depending on which type was wanted:
Code: [Select]
FOR FAT32:
newfs_msdos -F 32 -v EFI /dev/rdiskXs1

FOR HFS
newfs_hfs -v EFI /dev/rdiskXs1

Then we could remove the format that's currently default on the EFI HFS+ option.
« Last Edit: October 15, 2010, 09:14:49 AM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #112 on: October 18, 2010, 05:39:11 AM »
hi
commit 188
try changes in standard(boot0) and standard(boot0hfs) scripts

I try boot0 option and set the partition active (The rest of option still Untested).

This weekend with freetime I try add the blackosx's suggestion.

Fabio

PS in the commit I forgot to add the ?Icon <-- is a hidden file in the folder ... next commit
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #113 on: October 18, 2010, 08:15:35 AM »
Hi Fabio

Good to see you're trying to change your scripts but the make pkg fails with your commit 188 'Error creating archive'?
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #114 on: October 18, 2010, 10:05:58 PM »
Hi Blackosx and thx!

I update the same file but w/o the set icon... (yep the "folder" icon make the problem described above)
I find some "way" to create and set icon for folder starting from a imagefile using terminal command.. Is what I looking for..
I will try this to...


so... commit 190...
boot0 work for me and set the partition active...

Fabio
« Last Edit: October 18, 2010, 10:11:44 PM by iFabio »
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #115 on: October 18, 2010, 10:18:24 PM »
Okay Thanks. I've successfully built the installer (r190). I'll run some tests.....

EDIT: Running the installer, pointing to an empty partition on an empty HDD, and selecting only the 'Chameleon Standard' option ends with and installation error?
I used make pkg to build, is that correct?
« Last Edit: October 18, 2010, 10:26:13 PM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #116 on: October 19, 2010, 03:58:15 PM »
:(

then is time to return back to working version...

I re-try me too and I get your same error... sorry.

Fabio
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #117 on: October 19, 2010, 05:21:57 PM »
Hi Fabio

Don't worry....  You have done a good job working with this and i know you've grasped the fundamentals of the scripts etc.. Maybe now's a good time to take a stop and look at where the installer is at?

I thought the original idea was for you and scrax to work together on making a complete Chameleon installer but am I right in saying that you both have different code now? From my last test the code in Scrax's branch was working well, although I did experience a couple of random crashes with it - so it's not 100% ready.

Can you combine your tweaks etc. on to the code from scrax's branch? then we can just have one solid foundation with the main Chameleon files being installed correctly with all the other scripts added?

What do you think to that? :)
« Last Edit: October 19, 2010, 10:33:44 PM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

scrax

  • Member
  • Posts: 61
Re: Revisit Chameleon's package builder
« Reply #118 on: October 20, 2010, 10:36:36 AM »
Hi all,
 I'm a bit busy lately untill 6th of november.
I agree with Blackosx it's time to have a unified installer to work on. The big differences are is the chameleon install scripts, for EFI install can't be used EFI mounter to mount the EFI partition and then use the default installer on that partition?
At least for the HFS+ formatted EFI?
« Last Edit: October 25, 2010, 12:21:25 PM by scrax »

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #119 on: October 25, 2010, 08:59:54 AM »
I've been having a look at the scripts and have been thinking that maybe we can change things.... How about a new installer which installs the correct files dependent on which volume the user points to? That way the installer options can just be for either Standard or EFI. A lot of the code we need is already there in the existing scripts.

Simple Examples for Standard:

User selection in package installer:
HFS+ format partition on a disk with a GPT.
Script Action:
if found any non-HFS+ partitions (or TYPE: Microsoft Basic Data)
  write boot0hfs, boot1h and boot
else
  write boot0, boot1h and boot
  make partition active

User selection in package installer:
FAT+ format partition on a disk with a GPT.
Script Action:
if found any non-HFS+ partitions (or TYPE: Microsoft Basic Data)
  write boot0hfs, boot1f2 and boot
else
  write boot0, boot1f2 and boot
  make partition active

User selection in package installer:
a RAID Volume
Script Action: (Not too sure here as I haven't done this)
if found any non-HFS+ partitions (or TYPE: Microsoft Basic Data)
  write boot0hfs, boot1h and boot to each disk
else
  write boot0, boot1h and boot to each disk
  make partition active


Simple Example for EFI:

User selection in package installer:
Any partition on a disk with a GPT.
Script Action:
if GPT disk and format is hfs then
  mount_hfs volume
  if found any non-HFS+ partitions (or TYPE: Microsoft Basic Data)
    write boot0hfs, boot1h and boot
  else
    write boot0, boot1h and boot
    make partition active
  un-mount volume
else (format is ms_dos)
  mount_msdos volume
  if found any non-HFS+ partitions (or TYPE: Microsoft Basic Data)
    write boot0hfs, boot1h and boot
  else
    write boot0, boot1h and boot
    make partition active
  un-mount volume


I don't see why this type of logic can't be implemented in only two scripts (Standard and EFI), and could the same standard script be applied to disks with an FDisk_partition_scheme? (obviously no EFI script needed for this). I have only used GPT for my installs so I need to do some testing on that.
« Last Edit: October 25, 2010, 09:03:58 AM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB