From d72645f6d5421979a2c452f883907c70a2e28b93 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Mon, 27 Jul 2020 22:05:07 -0400 Subject: [PATCH] u-boot/installer: prefer truncate, no additional package and works on zfs --- u-boot/spi-installer.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/u-boot/spi-installer.nix b/u-boot/spi-installer.nix index a21e330..d871edf 100644 --- a/u-boot/spi-installer.nix +++ b/u-boot/spi-installer.nix @@ -48,7 +48,6 @@ let size = "8"; # in MiB nativeBuildInputs = [ e2fsprogs.bin - utillinux ]; volumeLabel = "FIRMWARE_INSTALL"; uuid = "666efd84-5c25-48ec-af06-e9dadbaa830f"; @@ -56,7 +55,7 @@ let img="$out" (PS4=" $ "; set -x - fallocate -l "$size"M $img + truncate -s "$size"M $img mkdir -p files (cd ./files