Skip to content
  • Mikko Rapeli's avatar
    b3493beb
    ledge-secure.wks.in: fix --part-type · b3493beb
    Mikko Rapeli authored
    This seems to cause errors with new util-linux/sfdisk version from poky:
    
    | ERROR: _exec_cmd: export PATH=/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/sbin:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/usr/sbin:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/usr/bin:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/usr/bin/aarch64-trs-linux:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/bin:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/hosttools:$PATH;sfdisk --sector-size 512 --part-type /home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/tmp-wic/ledge-secure-202501150923-sda.direct 1 0xef00 returned '1' instead of 0
    | output: sfdisk: /home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/tmp-wic/ledge-secure-202501150923-sda.direct: partition 1: failed to set partition type
    |
    | WARNING: exit code 1 from a shell command.
    NOTE: recipe trs-image-1.0-r0: task do_image_wic: Failed
    
    Fix by using GPT partition GUID instead of hex which is
    only meant for MBR usage according to
    https://www.man7.org/linux/man-pages/man8/sfdisk.8.html
    
    
    
    Signed-off-by: default avatarMikko Rapeli <mikko.rapeli@linaro.org>
    
    ledge-secure.wks.in: fix --part-type
    
    Signed-off-by: default avatarMikko Rapeli <mikko.rapeli@linaro.org>
    b3493beb
    ledge-secure.wks.in: fix --part-type
    Mikko Rapeli authored
    This seems to cause errors with new util-linux/sfdisk version from poky:
    
    | ERROR: _exec_cmd: export PATH=/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/sbin:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/usr/sbin:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/usr/bin:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/usr/bin/aarch64-trs-linux:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/recipe-sysroot-native/bin:/home/builder/src/base/repo/build/tmp_trs-qemuarm64/hosttools:$PATH;sfdisk --sector-size 512 --part-type /home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/tmp-wic/ledge-secure-202501150923-sda.direct 1 0xef00 returned '1' instead of 0
    | output: sfdisk: /home/builder/src/base/repo/build/tmp_trs-qemuarm64/work/trs_qemuarm64-trs-linux/trs-image/1.0/tmp-wic/ledge-secure-202501150923-sda.direct: partition 1: failed to set partition type
    |
    | WARNING: exit code 1 from a shell command.
    NOTE: recipe trs-image-1.0-r0: task do_image_wic: Failed
    
    Fix by using GPT partition GUID instead of hex which is
    only meant for MBR usage according to
    https://www.man7.org/linux/man-pages/man8/sfdisk.8.html
    
    
    
    Signed-off-by: default avatarMikko Rapeli <mikko.rapeli@linaro.org>
    
    ledge-secure.wks.in: fix --part-type
    
    Signed-off-by: default avatarMikko Rapeli <mikko.rapeli@linaro.org>
Loading