k3-pico-itx: fix sdcard cross-build

This commit is contained in:
Cole Mickens committed 2026-07-25 15:13:52 -05:00
1 parent a017f5b722
commit e37920a635
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