1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-18 18:49:51 +00:00
Files
poky/meta/recipes-support
Gyorgy Sarvari 77b7006d77 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>
2025-05-27 09:01:16 +01:00
..
2025-04-10 11:05:34 +01:00
2025-03-27 11:19:04 +00:00
2025-05-27 09:01:16 +01:00
2025-04-03 11:06:19 +01:00
2025-05-13 10:29:20 +01:00
2025-03-19 09:48:14 +00:00
2025-03-13 11:00:35 +00:00
2025-03-06 11:16:46 +00:00
2025-02-27 10:55:16 +00:00
2025-04-10 11:05:35 +01:00
2025-05-27 09:01:16 +01:00
2025-02-05 12:49:55 +00:00
2025-05-13 10:29:21 +01:00
2025-01-10 11:26:29 +00:00
2025-03-17 22:38:32 +00:00
2025-02-20 11:57:49 +00:00
2025-05-13 10:29:21 +01:00
2025-04-03 11:06:19 +01:00
2025-03-17 22:38:32 +00:00
2025-04-03 11:06:19 +01:00
2025-03-27 11:19:03 +00:00
2025-03-06 11:16:47 +00:00
2025-05-13 10:29:21 +01:00
2025-05-08 10:28:18 +01:00
2025-03-20 11:29:03 +00:00