X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/26f5bdf315fa59b2cc93158de1f92e5a1e6ee7cd..00dd11b52b1609e077dda4c89978f54b814fbd9f:/bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh index 8cf87aa..dc9641b 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -30,7 +30,7 @@ build_linux() curl -s https://tg.st/u/0001-4k-iommu-patch.patch | git am - curl -s https://tg.st/u/DXyl.patch | git am - curl -s https://tg.st/u/0001-apple-mca-correct-prinkts.patch | git am - - curl -s https://tg.st/u/0001-Hookup-gpio-backlight.patch | git am - + curl -s https://tg.st/u/0001-Hookup-backlight-for-MacBook-Pro-13-inch-M1-2020-J29.patch | git am - curl -s https://tg.st/u/XKVZ.patch | git am - curl -s https://tg.st/u/config-2022-02-19 > .config make olddefconfig @@ -78,6 +78,10 @@ build_rootfs() cd testing + sudo rm etc/fstab + + sudo mkdir -p boot/efi + sudo bash -c 'echo live > etc/hostname' sudo bash -c 'echo > etc/motd' @@ -85,10 +89,10 @@ build_rootfs() sudo cp ../../files/sources.list etc/apt/sources.list sudo cp ../../files/hosts etc/hosts sudo cp ../../files/resolv.conf etc/resolv.conf - sudo cp ../../files/fstab etc/fstab sudo cp ../../files/quickstart.txt root/ sudo cp ../../files/interfaces etc/network/interfaces sudo cp ../../files/wpa.conf etc/wpa_supplicant/wpa_supplicant.conf + sudo cp ../../files/rc.local etc/rc.local sudo bash -c 'chroot . apt update' sudo bash -c 'chroot . apt install -y firmware-linux' @@ -128,12 +132,33 @@ build_dd() tune2fs -O extents,uninit_bg,dir_index -m 0 -c 0 -i 0 media sudo mount -o loop media mnt sudo cp -a testing/* mnt/ + sudo touch mnt/etc/fstab sudo rm mnt/init sudo umount mnt tar cf - media | pigz > m1.tgz ) } +build_efi() +{ +( + rm -rf EFI + mkdir -p EFI/boot EFI/debian + 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=`blkid media | awk -F\" '{print $2}'` + cat > EFI/debian/grub.cfg <