]> cvs.zerfleddert.de Git - m1-debian/commitdiff
create efi.tar
authorThomas Glanzmann <thomas@glanzmann.de>
Wed, 23 Feb 2022 21:16:55 +0000 (22:16 +0100)
committerThomas Glanzmann <thomas@glanzmann.de>
Wed, 23 Feb 2022 21:16:55 +0000 (22:16 +0100)
bootstrap.sh
m1di.pl

index fb8580b4f8cdbeef76d29043cb13c63a58f838b8..32a760ed749d88bd7007583256e5afd804199a9c 100644 (file)
@@ -134,6 +134,27 @@ build_dd()
 )
 }
 
+build_efi()
+{
+(
+        rm -f EFI
+        mkdir -p EFI/BOOT
+        cp testing/usr/lib/grub/arm64-efi/monolithic/grubaa64.efi EFI/boot/bootaa64.efi
+
+        export INITRD=`ls -1 testing/boot/ | grep initrd`
+        export VMLINUZ=`ls -1 testing/boot/ | grep vmlinuz`
+        export UUID=`disktype build/media | grep UUID | awk '{print $2}'`
+        cat > EFI/boot/grub.cfg <<EOF
+search.fs_uuid ${UUID} root
+set prefix=(\$root)'/boot/'
+linux $VMLINUZ root=UUID=${UUID} ro
+inird $INITRD
+boot
+EOF
+        tar czf efi.tgz EFI
+)
+}
+
 build_di_stick()
 {
         rm -rf di-stick
@@ -158,7 +179,7 @@ publish_artefacts()
 {
         export KERNEL=`ls -1rt linux-image*.deb | grep -v dbg | tail -1`
         cp ${KERNEL} k.deb
-        sudo cp m1-d-i.tar m1.tgz asahi-debian-live.tar u-boot.bin u-boot.macho di-stick/vmlinuz k.deb m1n1/build/m1n1.bin m1n1/build/m1n1.macho testing/usr/lib/grub/arm64-efi/monolithic/grubaa64.efi /u/
+        sudo cp m1-d-i.tar m1.tgz efi.tgz asahi-debian-live.tar u-boot.bin u-boot.macho di-stick/vmlinuz k.deb m1n1/build/m1n1.bin m1n1/build/m1n1.macho testing/usr/lib/grub/arm64-efi/monolithic/grubaa64.efi /u/
 }
 
 mkdir -p build
@@ -173,4 +194,5 @@ build_rootfs
 build_live_stick
 build_di_stick
 build_dd
+build_efi
 publish_artefacts
diff --git a/m1di.pl b/m1di.pl
index 8c3b86110f7075968b436b7a4795371543f55491..b55f8d217fe25768dcd9458c1be3db447893c32e 100644 (file)
--- a/m1di.pl
+++ b/m1di.pl
@@ -56,7 +56,7 @@ system("mkdir -p /Volumes/efi");
 system("mount -t msdos /dev/$identifier /Volumes/efi");
 chdir('/Volumes/efi');
 system('mkdir -p /Volumes/efi/efi/boot');
-system('curl -sL https://tg.st/efi.tar.gz | tar -xzf -');
+system('curl -sL https://tg.st/efi.tgz | tar -xzf -');
 system('curl -sL tg.st/u/fwx.sh | bash');
 system('cp /tmp/linux-firmware.tar /Volumes/efi/');
 chdir('/var/root');
Impressum, Datenschutz