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:
Daan De Meyer 2022-07-19 13:45:24 +02:00 committed by Luca Boccassi
parent 6a1d8f1161
commit 5a4327d1a8

View file

@ -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/' {} +