]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
ba5bb69657ee1422a7d51ade4a77f90841f16987
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 From d6bb773745c2e95fd1a414e916fbed64e0d8df66 Mon Sep 17 00:00:00 2001
2 From: Alexander Kanavin <alex@linutronix.de>
3 Date: Mon, 31 Mar 2025 17:42:25 +0200
4 Subject: [PATCH] sbin/update-ca-certificates: add a --sysroot option
5
6 This allows using the script in cross-compilation environments
7 where the script needs to prefix the sysroot to every other
8 directory it operates on. There are individual options
9 to set those directories, but using a common prefix option
10 instead is a lot less clutter and more robust.
11
12 Upstream-Status: Submitted [https://salsa.debian.org/debian/ca-certificates/-/merge_requests/13]
13 Signed-off-by: Alexander Kanavin <alex@linutronix.de>
14 ---
15 sbin/update-ca-certificates | 8 ++++++++
16 1 file changed, 8 insertions(+)
17
18 diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates
19 index 4bb77a0..1e737b9 100755
20 --- a/sbin/update-ca-certificates
21 +++ b/sbin/update-ca-certificates
22 @@ -59,6 +59,14 @@ do
23 --hooksdir)
24 shift
25 HOOKSDIR="$1";;
26 + --sysroot)
27 + shift
28 + SYSROOT="$1"
29 + CERTSCONF="$1/${CERTSCONF}"
30 + CERTSDIR="$1/${CERTSDIR}"
31 + LOCALCERTSDIR="$1/${LOCALCERTSDIR}"
32 + ETCCERTSDIR="$1/${ETCCERTSDIR}"
33 + HOOKSDIR="$1/${HOOKSDIR}";;
34 --help|-h|*)
35 echo "$0: [--verbose] [--fresh]"
36 exit;;