summaryrefslogtreecommitdiffstats
path: root/scripts/lib/checklayer/case.py
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-05-23 20:18:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-05-27 09:01:16 +0100
commit77b7006d7700e413ca363631fbd652fb88e46c20 (patch)
tree0de42ac0bb4f526e4ad58a905d2e2bedd22f77fd /scripts/lib/checklayer/case.py
parentbe020974d59722d68280b72db71c4c242f489770 (diff)
downloadpoky-77b7006d7700e413ca363631fbd652fb88e46c20.tar.gz
ca-certificates: fix on-target postinstall script
When the package is installed directly on the machine (instead of installing it in the rootfs directly), the postinstall script fails with the following error: /usr/sbin/update-ca-certificates: line 75: shift: shift count out of range The reason is that the "update-ca-certificates" script is executed with the "--sysroot" argument, and as the sysroot $D is passed. However on the target system this variable doesn't exist, so the argument is passed without this mandatory value, and the execution fails. To avoid this error, check if the $D variable exists, and pass the --sysroot argument only when it does. Reported-by: WXbet <Wxbet@proton.me> (From OE-Core rev: cf39461e97098a1b28693299677888ba7e8bfccf) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/checklayer/case.py')
0 files changed, 0 insertions, 0 deletions