mkosi: Silence gdb debuginfo messages/prompts
Let's silence gdb asking about debuginfod and complaining about missing debuginfo to reduce friction when using mkosi to work on systemd.
This commit is contained in:
committed by
Luca Boccassi
parent
6a1d8f1161
commit
5a4327d1a8
@@ -6,6 +6,11 @@ if [ "$1" = "final" ]; then
|
||||
bootctl install
|
||||
fi
|
||||
|
||||
cat >> /root/.gdbinit <<EOF
|
||||
set debuginfod enabled off
|
||||
set build-id-verbose 0
|
||||
EOF
|
||||
|
||||
if [ -n "$SANITIZERS" ]; then
|
||||
# ASAN and syscall filters aren't compatible with each other.
|
||||
find / -name '*.service' -type f -exec sed -i 's/^\(MemoryDeny\|SystemCall\)/# \1/' {} +
|
||||
|
||||
Reference in New Issue
Block a user