Skip to content

Commit a2ff20c

Browse files
committed
removing bios boot files before apply the Payload
1 parent ed6a6bd commit a2ff20c

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
#echo "DEBUG: $ 1 = Full path to the installation package the installer app is processing: " $1
4+
#echo "DEBUG: $ 2 = Full path to the installation destination: " $2
5+
#echo "DEBUG: $ 3 = Installation volume (mountpoint) to receive the payload: " $3
6+
#echo "DEBUG: $ 4 = Root directory for the system: " $4
7+
8+
echo "preinstall: Path to installer....... $1"
9+
echo "preinstall: Path to destination..... $2"
10+
echo "preinstall: Path to dest volume..... $3"
11+
echo "preinstall: Root of system folder... $4"
12+
13+
#############################################################################
14+
15+
if [ "$3" == "/" ]; then
16+
DEST_VOL="/Volumes/"$( ls -1F /Volumes | sed -n 's:@$::p' )
17+
else
18+
DEST_VOL="$3"
19+
fi
20+
21+
boots=(boot5 boot6 boot7)
22+
23+
sect=(boot0af
24+
boot0ss
25+
boot1f32
26+
boot1f32alt
27+
boot1h
28+
boot1h2
29+
boot1x
30+
boot1xalt
31+
Description.txt
32+
Installation.txt)
33+
34+
35+
for i in "${boots[@]}"
36+
do
37+
rm -f "${DEST_VOL}"/usr/standalone/i386/x64/$i
38+
done
39+
40+
41+
for i in "${sect[@]}"
42+
do
43+
rm -f "${DEST_VOL}"/usr/standalone/i386/$i
44+
done

CloverPackage/package/buildpkg.sh

+2
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ if [[ ${NOEXTRAS} != *"CloverEFI"* ]]; then
585585
fixperms "${PKG_BUILD_DIR}/${choiceId}/Root/"
586586
# chmod 755 "${PKG_BUILD_DIR}/${choiceId}"/Root/usr/local/bin/{fdisk440,boot1-install}
587587
chmod 755 "${PKG_BUILD_DIR}/${choiceId}"/Root/usr/local/bin/boot1-install
588+
589+
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" ${choiceId}
588590

589591
packageRefId=$(getPackageRefId "${packagesidentity}" "${choiceId}")
590592
packageBiosBootRefId=$packageRefId

0 commit comments

Comments
 (0)