#1033488 should not use dpkg --print-architecture

#1033488#5
Date:
2023-03-26 02:35:45 UTC
From:
To:
I am currently cross-grading an ARM system from armhf to arm64, and
flash-kernel generates a non-working boot.scr file because dpkg
--print-architecture in get_boot_cmd() returns armhf instead of arm64.

#1033488#10
Date:
2023-03-26 09:09:14 UTC
From:
To:
Idea for supporting such corner cases


    if environmentvariable CROSS_GRADE_TO_ARCH is set
        use it
    else
        dpkg --print-architecture



Groeten
Geert Stappers