mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 21:13: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 = "";
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user