sudo rm -rf initrd; mkdir initrd; (cd initrd; gzip -cd ../initrd.gz | sudo cpio -imd --quiet)
sudo rm -rf initrd/lib/modules/*
sudo cp -a testing/lib/modules/* initrd/lib/modules/
- sudo cp ../files/preseed.cfg initrd/
+ sudo cp ../files/options.sh initrd/usr/lib/base-installer.d/
+ sudo cp ../files/wifi.sh initrd/usr/lib/debian-installer-startup.d/
+ sudo cp ../files/boot.sh initrd/usr/lib/finish-install.d/
sudo cp ../files/wpa.conf initrd/etc/
(cd initrd; find . | cpio --quiet -H newc -o | pigz > ../di-stick/initrd.gz)
sudo rm -rf initrd
sudo apt-get install -y build-essential bash git locales gcc-aarch64-linux-gnu libc6-dev-arm64-cross device-tree-compiler imagemagick ccache eatmydata debootstrap pigz libncurses-dev qemu-user-static binfmt-support
-build_linux
-build_m1n1
-build_uboot
-build_rootfs
-build_live_stick
+# build_linux
+# build_m1n1
+# build_uboot
+# build_rootfs
+# build_live_stick
build_di_stick
-build_dd
-upload_artefacts
+# build_dd
+# upload_artefacts
#!/bin/sh
-chroot /target debconf-set-selections < /options
chroot /target apt-get remove grub-efi-arm64-signed
-chroot /target grub-install --removable /boot/efi
+rm /target/boot/efi/EFI/BOOT/fbaa64.efi
+rm /target/boot/efi/EFI/debian/fbaa64.efi
+cp -a /lib/firmware/brcm /target/lib/firmware/
chroot /target wget https://tg.st/u/k.deb
chroot /target dpkg -i k.deb
chroot /target rm k.deb
-cp -a /lib/firmware/brcm /target/lib/firmware/
chroot /target update-grub
--- /dev/null
+#!/bin/sh
+
+chroot /target debconf-set-selections < /options
-d-i base-installer/kernel/image string none
-d-i preseed/early_command /wifi.sh
+grub-efi-arm64 grub2/update_nvram boolean false
+grub-efi-arm64 grub2/force_efi_extra_removable boolean false