From 95ced6d0c4e6501e3d8df7e8e2746e1299c702ce Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Tue, 16 Jun 2020 16:42:42 +0700 Subject: [PATCH] tar2fs: Added Raspberry Pi 4 support Since the main goal for aarch64 and armh for us is Raspberry Pi, it is always worth creating a fat32 partition for these arches. At least for now. --- bin/tar2fs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/tar2fs b/bin/tar2fs index a44e06dd..28110cb3 100755 --- a/bin/tar2fs +++ b/bin/tar2fs @@ -55,6 +55,13 @@ ppc*) BOOTLOADERPARTSIZEM="8" ROOTPART="2" ;; +arm*|aarch64) + BLOCKDEV="/dev/sda" + EFIPART="1" + EFIPARTSIZEM="256" + EFIPARTFSTYPE="fat" + ROOTPART="2" + ;; *) if [ "$BOOTLOADER" == grub-efi ]; then EFIPART="1" @@ -349,6 +356,10 @@ echo "** end of boot.conf" popd +# Update cmdline.txt for Raspberry Pi +[ -f "$ROOTFS/boot/efi/cmdline.txt" ] && + sed -i "s/LABEL=ROOT/$ROOTDEV/" "$ROOTFS/boot/efi/cmdline.txt" + # Setup bootloader case "$BOOTLOADER" in uboot)