Merge pull request #1964 from colemickens/colemickens/k3-cross

k3-pico-itx: fix sdcard cross-build
This commit is contained in:
Sandro authored and GitHub committed 2026-08-14 14:21:38 +00:00
commit 2dda192987
1 file changed
+2 -2
+2 -2
View File
@@ -84,13 +84,13 @@
populateRootCommands = "";
postBuildCommands = ''
eval $(${pkgs.util-linux}/bin/partx $img -o START,SECTORS --nr 2 --pairs)
eval $(${pkgs.buildPackages.util-linux}/bin/partx $img -o START,SECTORS --nr 2 --pairs)
ROOTFS_START=$START
ROOTFS_SECTORS=$SECTORS
truncate -s '+2M' $img
${pkgs.util-linux}/bin/sfdisk $img <<EOF
${pkgs.buildPackages.util-linux}/bin/sfdisk $img <<EOF
label: gpt
unit: sectors
sector-size: 512