25 |
then |
then |
26 |
echo "building efiboot.img" |
echo "building efiboot.img" |
27 |
# the content of the img should be /EFI/BOOT* and not /BOOT/*, so we need to copy the content in a temp dir |
# the content of the img should be /EFI/BOOT* and not /BOOT/*, so we need to copy the content in a temp dir |
28 |
sudo rm -rf /tmp/efiboot |
sudo mount -o loop $(pwd)/$distarch/efiboot.img /tmp/loop |
29 |
mkdir -p /tmp/efiboot |
sudo cp -a $(pwd)/$distarch/EFI/BOOT/grub.cfg /tmp/loop/EFI/BOOT/ |
30 |
cp -a $(pwd)/$distarch/$img /tmp/efiboot |
sudo umount /tmp/loop |
31 |
/sbin/mksquashfs \ |
# sudo rm -rf /tmp/efiboot |
32 |
/tmp/efiboot \ |
# mkdir -p /tmp/efiboot |
33 |
$(pwd)/$distarch/images/efiboot.img \ |
# cp -a $(pwd)/$distarch/$img /tmp/efiboot |
34 |
-all-root -no-fragments -noappend |
# /sbin/mksquashfs \ |
35 |
sudo chmod 664 $(pwd)/$distarch/images/efiboot.img |
# /tmp/efiboot \ |
36 |
sudo rm -rf /tmp/efiboot |
# $(pwd)/$distarch/images/efiboot.img \ |
37 |
|
# -all-root -no-fragments -noappend |
38 |
|
# sudo chmod 664 $(pwd)/$distarch/images/efiboot.img |
39 |
|
# sudo rm -rf /tmp/efiboot |
40 |
elif [ -d "$(pwd)/$distarch/$img" ] |
elif [ -d "$(pwd)/$distarch/$img" ] |
41 |
then |
then |
42 |
echo "building $img.img...." |
echo "building $img.img...." |
71 |
if [ "$distrel" == "10" ] |
if [ "$distrel" == "10" ] |
72 |
then |
then |
73 |
#Caton |
#Caton |
|
#xorriso -as mkisofs -isohybrid-mbr isolinux/isohdpfx.bin \ |
|
|
#-c isolinux/boot.cat -b isolinux/isolinux.bin |
|
|
#-no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot \ |
|
|
#-e images/efiboot.img -no-emul-boot \ |
|
|
#-isohybrid-gpt-basdat \ |
|
|
#-o ../custom-SME10.iso . |
|
|
# in fact it is : |
|
74 |
#xorriso -as mkisofs \ |
#xorriso -as mkisofs \ |
75 |
#-o ../custom-SME10.iso \ |
#-o ../custom-SME10.iso \ |
76 |
#-V "SME Server" \ |
#-V "SME Server" \ |
87 |
#-isohybrid-gpt-basdat \ |
#-isohybrid-gpt-basdat \ |
88 |
#-R -J -v -T . |
#-R -J -v -T . |
89 |
|
|
90 |
/usr/bin/xorriso -as mkisofs -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \ |
/usr/bin/xorriso -as mkisofs -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \ |
91 |
$mkisopts -joliet-long \ |
$mkisopts -joliet-long \ |
92 |
-V "$distname" \ |
-V "$distname" \ |
93 |
-A "$distname" \ |
-A "$distname" \ |
94 |
-volset "$distname" \ |
-volset "$distname" \ |
137 |
|
|
138 |
echo "building efiboot.img for netinstall" |
echo "building efiboot.img for netinstall" |
139 |
# the content of the img should be /EFI/BOOT* and not /BOOT/*, so we need to copy the content in a temp dir |
# the content of the img should be /EFI/BOOT* and not /BOOT/*, so we need to copy the content in a temp dir |
140 |
sudo rm -rf /tmp/remaster/efiboot |
# sudo rm -rf /tmp/remaster/efiboot |
141 |
mkdir -p /tmp/remaster/efiboot |
sudo mount -o loop /tmp/remaster/efiboot.img /tmp/loop |
142 |
cp -a /tmp/remaster/EFI $(pwd)/$distarch/efiboot |
sudo cp -a /tmp/remaster/EFI/BOOT/grub.cfg /tmp/loop/EFI/BOOT/ |
143 |
/sbin/mksquashfs \ |
sudo umount /tmp/loop |
144 |
/tmp/remaster/efiboot \ |
# mkdir -p /tmp/remaster/efiboot |
145 |
/tmp/remaster/images/efiboot.img \ |
# cp -a /tmp/remaster/EFI $(pwd)/$distarch/efiboot |
146 |
-all-root -no-fragments -noappend |
# /sbin/mksquashfs \ |
147 |
|
# /tmp/remaster/efiboot \ |
148 |
|
# /tmp/remaster/images/efiboot.img \ |
149 |
|
# -all-root -no-fragments -noappend |
150 |
sudo chmod 664 /tmp/remaster/images/efiboot.img |
sudo chmod 664 /tmp/remaster/images/efiboot.img |
151 |
sudo rm -rf /tmp/remaster/efiboot |
# sudo rm -rf /tmp/remaster/efiboot |
152 |
#rebuild iso for netinstall |
#rebuild iso for netinstall |
153 |
|
|
154 |
/usr/bin/xorriso -as mkisofs -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \ |
# /usr/bin/xorriso -as mkisofs -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \ |
155 |
|
/usr/bin/xorriso -as mkisofs \ |
156 |
$mkisopts -joliet-long \ |
$mkisopts -joliet-long \ |
157 |
-V "$distname" \ |
-V "$distname" \ |
158 |
-A "$distname" \ |
-A "$distname" \ |