mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-03 22:43:30 +01:00
k3-pico-itx: fix sdcard cross-build
This commit is contained in:
1 file changed
+2
-2
@@ -84,13 +84,13 @@
|
|||||||
populateRootCommands = "";
|
populateRootCommands = "";
|
||||||
|
|
||||||
postBuildCommands = ''
|
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_START=$START
|
||||||
ROOTFS_SECTORS=$SECTORS
|
ROOTFS_SECTORS=$SECTORS
|
||||||
|
|
||||||
truncate -s '+2M' $img
|
truncate -s '+2M' $img
|
||||||
|
|
||||||
${pkgs.util-linux}/bin/sfdisk $img <<EOF
|
${pkgs.buildPackages.util-linux}/bin/sfdisk $img <<EOF
|
||||||
label: gpt
|
label: gpt
|
||||||
unit: sectors
|
unit: sectors
|
||||||
sector-size: 512
|
sector-size: 512
|
||||||
|
|||||||
Reference in new issue
Block a user