Files
poky/meta/recipes-support
Gyorgy Sarvari 7810db935d 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>
2025-11-14 06:45:29 -08:00
..
2024-09-09 06:08:10 -07:00
2024-01-01 23:11:42 +00:00
2024-03-07 17:25:02 +00:00
2024-03-23 10:18:20 +00:00
2025-01-25 06:20:37 -08:00
2025-11-14 06:45:29 -08:00
2024-03-07 17:25:02 +00:00
2024-02-03 22:08:26 +00:00
2024-11-18 06:59:35 -08:00
2024-07-17 05:36:13 -07:00
2025-09-01 08:30:56 -07:00
2025-08-04 07:55:06 -07:00
2022-04-14 09:47:00 +01:00
2024-03-07 17:25:02 +00:00
2025-02-28 06:45:14 -08:00
2024-09-03 05:39:12 -07:00
2024-03-01 09:28:51 +00:00
2024-02-18 22:02:40 +00:00
2023-11-05 11:28:39 +00:00
2024-03-01 09:28:51 +00:00
2023-06-28 07:56:33 +01:00
2022-12-22 23:05:50 +00:00
2024-07-26 07:43:46 -07:00
2024-02-17 18:19:19 +00:00
2024-01-24 15:46:19 +00:00
2025-07-11 08:11:53 -07:00
2023-02-19 07:47:53 +00:00
2024-06-05 05:57:12 -07:00
2024-09-03 05:39:12 -07:00
2025-11-03 07:17:02 -08:00
2023-09-02 18:23:05 +01:00
2024-04-08 23:33:32 +01:00
2024-02-21 22:20:10 +00:00
2022-10-29 16:28:35 +01:00
2022-11-22 12:26:46 +00:00
2023-08-14 12:51:21 +01:00
2025-07-29 07:59:52 -07:00
2024-06-19 08:34:57 -07:00
2025-09-30 08:01:59 -07:00
2024-07-23 06:05:47 -07:00
2023-08-14 12:51:21 +01:00