1 |
commit: 3e9ffa310cfcbadbe5c17160e72f0ff86feed8e4 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 11 19:42:14 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 11 19:48:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=3e9ffa31 |
7 |
|
8 |
gen_initramfs.sh: create_initramfs(): Disable sandbox for ldconfig |
9 |
|
10 |
ldconfig will use chroot(). However, sandbox doesn't understand |
11 |
that and believes we are writing to /etc/ld.so.cache... which is wrong. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/431038 |
14 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
15 |
|
16 |
gen_initramfs.sh | 3 ++- |
17 |
1 file changed, 2 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/gen_initramfs.sh b/gen_initramfs.sh |
20 |
index c5e4a67..23ed9dc 100755 |
21 |
--- a/gen_initramfs.sh |
22 |
+++ b/gen_initramfs.sh |
23 |
@@ -1608,7 +1608,8 @@ create_initramfs() { |
24 |
# We can generate or update /etc/ld.so.cache which was copied from host |
25 |
# to actually match initramfs' content. |
26 |
print_info 1 "$(get_indent 1)>> Pre-generating initramfs' /etc/ld.so.cache ..." |
27 |
- ldconfig -f /etc/ld.so.conf -r "${TDIR}" 2>/dev/null \ |
28 |
+ # Need to disable sandbox which doesn't understand chroot(), bug #431038 |
29 |
+ SANDBOX_ON=0 ldconfig -f /etc/ld.so.conf -r "${TDIR}" 2>/dev/null \ |
30 |
|| gen_die "Failed to pre-generate '${TDIR}/etc/ld.so.cache'!" |
31 |
fi |