]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Silence gdb debuginfo messages/prompts
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 19 Jul 2022 11:45:24 +0000 (13:45 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 19 Jul 2022 16:32:11 +0000 (17:32 +0100)
Let's silence gdb asking about debuginfod and complaining about
missing debuginfo to reduce friction when using mkosi to work
on systemd.

mkosi.postinst

index 8817818a949c8d04948158786ddaeb55383e0099..1c24b4f51a57aa7cc7b7bd2cebd4e2e331d885ff 100755 (executable)
@@ -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/' {} +