X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/a2845c74e267f0d75a8912a309882adbba880d2b..a6fc47946516096631dacbf8985ee9cd3e072f2a:/bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh index 2ae1c1b..dc9641b 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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 <