summaryrefslogtreecommitdiffstats
path: root/scripts/patchtest-setup-sharedir
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-11-10 23:21:47 +1300
committerSteve Sakoman <steve@sakoman.com>2025-11-14 06:45:29 -0800
commit7810db935d368329565aa65329d2c9c135ee1e01 (patch)
treec4612a2fc9c05b3c61284efba20cc5957e1a0349 /scripts/patchtest-setup-sharedir
parentd9c3943da3f151e8067f57b1fb4c29104906a1c4 (diff)
downloadpoky-7810db935d368329565aa65329d2c9c135ee1e01.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: 9a2bd3b6e2e53071a1463d2804d0d4fb17b1814f) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cf39461e97098a1b28693299677888ba7e8bfccf) Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/patchtest-setup-sharedir')
0 files changed, 0 insertions, 0 deletions