Commit a2ff20c 1 parent ed6a6bd commit a2ff20c Copy full SHA for a2ff20c
File tree 2 files changed +46
-0
lines changed
Scripts.templates/BiosBoot
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -585,6 +585,8 @@ if [[ ${NOEXTRAS} != *"CloverEFI"* ]]; then
585
585
fixperms " ${PKG_BUILD_DIR} /${choiceId} /Root/"
586
586
# chmod 755 "${PKG_BUILD_DIR}/${choiceId}"/Root/usr/local/bin/{fdisk440,boot1-install}
587
587
chmod 755 " ${PKG_BUILD_DIR} /${choiceId} " /Root/usr/local/bin/boot1-install
588
+
589
+ addTemplateScripts --pkg-rootdir=" ${PKG_BUILD_DIR} /${choiceId} " ${choiceId}
588
590
589
591
packageRefId=$( getPackageRefId " ${packagesidentity} " " ${choiceId} " )
590
592
packageBiosBootRefId=$packageRefId
You can’t perform that action at this time.
0 commit comments