X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/cccfe6d57d96f392cb3e49a9998db9fea3bc043f..6f3d83e0afdc6e62c3f482e7afd1f73f1b2356ea:/bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh index fa1edec..0aa75cb 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -39,6 +39,9 @@ build_rootfs() sudo cp ../../files/wpa.conf etc/wpa_supplicant/wpa_supplicant.conf sudo cp ../../files/rc.local etc/rc.local sudo cp ../../files/30-modeset.conf etc/X11/xorg.conf.d/30-modeset.conf + sudo cp ../../files/blacklist.conf etc/modprobe.d/ + + sudo perl -p -i -e 's/"quiet"/"net.ifnames=0"/ if /^GRUB_CMDLINE_LINUX_DEFAULT=/' etc/default/grub sudo bash -c 'chroot . apt update' sudo bash -c 'chroot . apt install -y firmware-linux' @@ -60,7 +63,7 @@ build_live_stick() rm -rf live-stick mkdir -p live-stick/efi/boot live-stick/efi/debian/ sudo cp ../files/wifi.pl testing/etc/rc.local - sudo bash -c 'cd testing; find . | cpio --quiet -H newc -o | pigz -9 > ../live-stick/initrd.gz' + sudo bash -c 'cd testing; find . | cpio --quiet -H newc -o | zstd -T0 -16 > ../live-stick/initrd.zstd' cp testing/usr/lib/grub/arm64-efi/monolithic/grubaa64.efi live-stick/efi/boot/bootaa64.efi cp testing/boot/vmlinuz* live-stick/vmlinuz cp ../files/grub.cfg live-stick/efi/debian/grub.cfg @@ -84,26 +87,6 @@ build_dd() ) } -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 -s UUID -o value media` - cat > EFI/debian/grub.cfg <