Jump to content

Philip Petev

Philip Petev

Member Since 13 Oct 2006
Offline Last Active Today, 03:51 PM
*****

#2595826 Build_Clover.command, another Script to build standard Clover (or customized)

Posted by Philip Petev on Today, 10:31 AM

SF = SourceForge Sent from my MI 5s using Tapatalk

#2595787 Build_Clover.command, another Script to build standard Clover (or customized)

Posted by Philip Petev on Today, 08:42 AM

The script works perfectly, the problem is at SF.

#2587943 Build_Clover.command, another Script to build standard Clover (or customized)

Posted by Philip Petev on 09 February 2018 - 12:11 PM

Yes, found that last night, just pushed version 4.7.1.

#2587262 Clover General discussion

Posted by Philip Petev on 08 February 2018 - 10:38 AM

So maybe all the previous receipts should be removed in postinstall? Or is that too late and the new receipts are there already? The previously installed stuff should definitely be removed, with caveats that the user needs to choose to remove stuff that doesn't exist in the running installer.  I understand the change, I just suggest making a different one. Also having HFSPlus and VBoxHFS causes issues. I also think most people think that if they uncheck something it will be removed, I know I do. I expect that.  I gave you a way to do it, check the current package for the same stuff as the receipts, if not found in the package, use osascript to generate a dialog. I have no idea if there is anyway to add options after the package is already made but that would be a much cleaner solution...  Yeah, we should maybe remove them in postinstall likepkgutil --forget @CLOVER_PACKAGE_IDENTITY@But is that going to remove the currently installing package or the prev...

#2586980 Clover General discussion

Posted by Philip Petev on 07 February 2018 - 08:18 PM

Ok the last part is what is really causing an issue, the receipts are invalid or not there? Are the receipts not named well enough that you can figure out they are from which selection or contain any other information besides the names?EDIT2: Are these receipts removed if an option is then unselected? Or does it just stay there forever? The receipts are not being removed. Ever. There is no such practice in the macOS Install framework. The only way to remove them is to delete them manually from /var/db/receipts or /Library/Receipts. That's what this preinstall script is trying to do, but as I said, it's not a good idea and a bad practice, in such cases a preinstall script is being used for every subpackage to remove the older version of the files before deploying the new one. I think to look at this problem when I get some free time (probably this weekend). EDIT: I see that the first line actually tells you which selection they were from right? I don't agree that the filesy...

#2586685 Clover General discussion

Posted by Philip Petev on 07 February 2018 - 03:18 PM

I made some tests today. It's all about this part:# Remove files of old revision. pkgs=$(/usr/sbin/pkgutil --volume "$DEST_VOL" --pkgs | /usr/bin/grep -iE '@CLOVER_PACKAGE_IDENTITY@.' | /usr/bin/grep -Ev 'ntfs|apfs|hfsplus') for pkg in $pkgs; do   # Get where the files where installed from volume destination   location=$(/usr/sbin/pkgutil --volume "$DEST_VOL" --pkg-info $pkg 2>/dev/null | sed -n 's/^location: *//p')   pkgutil --volume "$DEST_VOL" --files $pkg 2>/dev/null  | \ xargs -I @@ echo "$DEST_VOL/$location/@@" | \ /usr/bin/grep -iE 'EFI/CLOVER/(drivers\w+)/' | \ xargs -I @@ rm -rf '@@'   rm -f "$DEST_VOL"/Library/Receipts/"$pkg".{plist,bom} doneFirst line determines all installed packages with identifiers, starting with org.clover, excluding the identifiers of the filesystem drivers if anyone have them installed with custom package. Nothing unusual. Now, the "for" cycle is the interesting part - for each identifier in t...

#2586137 Clover General discussion

Posted by Philip Petev on 06 February 2018 - 08:03 PM

latest Package Clover 4405 not mount EFI partition in Mac OS X  Snow Leopard bellow 4398 is ok According to Micky1979 the partutil tool is 64 bit only and you should probably change the build settings for it and generate 32 bit binary.

#2586070 Clover General discussion

Posted by Philip Petev on 06 February 2018 - 06:50 PM

@Philip Petev I have a question. If i select some uefi64 driver in clover package when install clover and installed clover. Next time, clover package again, clover package remember i selected uefi64 driver. If i want to cleanup option like after install fresh macos. Where is store that i selected option in MacOS partition? Thanks in advance 나의 LG-F800S 의 Tapatalk에서 보냄 It's /Library/Preferences/com.projectosx.clover.installer.plist.

#2583773 Build_Clover.command, another Script to build standard Clover (or customized)

Posted by Philip Petev on 03 February 2018 - 06:25 PM

You should probably have used the build script, bundled with AptioFixPkg. It installs mtoc (also bundled with AptioFixPkg) in /usr/local/bin and that interfere with the symlinks, made there by ebuild.sh/Build_Clover.command.

#2560666 Clover General discussion

Posted by Philip Petev on 03 January 2018 - 07:21 AM

Guys, did you see this? That's what I call The solution: just delete what is not needed! :hysterical:

#2560201 Clover General discussion

Posted by Philip Petev on 02 January 2018 - 05:13 PM

FlashDrives under 1Gb are always formats without EFI partition in macOS Disk Utility.  Indeed... Screen Shot 2018-01-02 at 19.12.28.png 46.33KB 9 downloadsFound one old 1GB USB drive.

#2560090 Clover General discussion

Posted by Philip Petev on 02 January 2018 - 02:22 PM

I think it's just disk utility is not really that great.... Especially when compared to something like gparted.It was great before, but Disk Utility (macOS 10.11+) is a piece of $hit.

#2560060 Clover General discussion

Posted by Philip Petev on 02 January 2018 - 01:58 PM

apianti, no, I used "diskutil list" after macos diskutility formatting. there is no efi partition.  The MBR+msdos combination works fine though, as I wrote. So my bios seems to be capable of reading FAT16. Also I assume FAT16 actually nowadays is the same as FAT32. I don't have linux. I already answered that above. I used the macos high sierra disk utility. Only MBR+msdos is bootable here, but not GPT+HFS or GPT+MSDOS. Also after selecting GPT formatting, there is no EFI partition created my disk utility, I checked that with "diskutil list". After the formatting I installed clover with boot0af on the first partition.As apianti said, something wrong happens in Disk Utility with this USB drive. The GPT formatted drive always has an EFI partition at the beginning, no matter what FS should be used for the rest.

#2557711 Build_Clover.command, another Script to build standard Clover (or customized)

Posted by Philip Petev on 28 December 2017 - 07:34 PM

This issue was introduced in edk2 r25984 and I'm pretty sure it has something to do with lines 269-273 in edk2/BaseTools/Source/C/Common/PcdValueCommon.c:#ifdef __GNUC__ sprintf(PcdList[Index].Value, "0x%016lx", Value);#else sprintf(PcdList[Index].Value, "0x%016llx", Value);#endifWhatever defines that GNUC macro, it also breaks the Basetools build. Enforcing the "else" part solves (maybe?!?) the build problem.

#2551634 Clover Bug/Issue Report and Patch

Posted by Philip Petev on 16 December 2017 - 07:36 PM

There is a problem with the Clover package. In very rare cases (mostly using a third-party custom-made package after the official one and vice versa), when the CloverThemeManager is already installed in /Applications, selecting that app for installation causes merging of the two apps that makes the resulted one inoperable. According to some sources, incl. the guys at the installer-dev mailing list, installing an app directly over the already installed one, using such package, is generally not recommended for several reasons (leftovers from the old one that may affect the operation of the new one, wrong permissions of those leftovers etc.), unless the package contains a patcher for that app and not actually the newer version of it. The attached file contains a patch for buildpkg.sh and a folder, named CloverThemeManager, that should be copied to Clover/CloverPackage/package/Script.templates. The folder contains a preinstall script for the CloverThemeManager subpackage that...

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy