X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/a6fc47946516096631dacbf8985ee9cd3e072f2a..fb2efba40d90ec1d3b39c4f4d266013bca180101:/bootstrap.sh?ds=inline diff --git a/bootstrap.sh b/bootstrap.sh index dc9641b..53514a7 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -72,14 +72,12 @@ build_rootfs() handle_crosscompile sudo rm -rf testing mkdir -p cache - sudo eatmydata ${DEBOOTSTRAP} --cache-dir=`pwd`/cache --arch=arm64 --include initramfs-tools,wpasupplicant,tcpdump,vim,tmux,vlan,ntpdate,bridge-utils,parted,curl,wget,grub-efi-arm64,mtr-tiny,dbus,ca-certificates,sudo,openssh-client testing testing http://ftp.fau.de/debian + sudo eatmydata ${DEBOOTSTRAP} --cache-dir=`pwd`/cache --arch=arm64 --include initramfs-tools,wpasupplicant,tcpdump,vim,tmux,vlan,ntpdate,parted,curl,wget,grub-efi-arm64,mtr-tiny,dbus,ca-certificates,sudo,openssh-client testing testing http://ftp.fau.de/debian export KERNEL=`ls -1rt linux-image*.deb | grep -v dbg | tail -1` cd testing - sudo rm etc/fstab - sudo mkdir -p boot/efi sudo bash -c 'echo live > etc/hostname' @@ -128,11 +126,10 @@ build_dd() rm -f media dd if=/dev/zero of=media bs=1 count=0 seek=1G mkdir -p mnt - mkfs.ext4 media + mkfs.ext4 -O metadata_csum_seed,64bit media 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 @@ -163,7 +160,8 @@ build_di_stick() { rm -rf di-stick mkdir -p di-stick/efi/boot di-stick/efi/debian/ - test -f initrd.gz || wget https://d-i.debian.org/daily-images/arm64/daily/netboot/debian-installer/arm64/initrd.gz + rm -f initrd.gz + wget https://d-i.debian.org/daily-images/arm64/daily/netboot/debian-installer/arm64/initrd.gz 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/ @@ -189,7 +187,7 @@ publish_artefacts() mkdir -p build cd build -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 rsync git +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 rsync git flex bison bc kmod cpio libncurses5-dev libelf-dev:native libssl-dev build_linux build_m1n1