From d8067d40412935e5a317181fb5ea8365819271a1 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sat, 23 Jan 2021 17:26:33 +0000 Subject: [PATCH] mkosi: Add a postinstall script to setup .gdbinit. systemd is compiled with relative source file paths so we need to issue a directory command to make sure gdb can find systemd's source files. Let's put this in a .gdbinit file so it's executed automatically when we run gdb. --- mkosi.postinst | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 mkosi.postinst diff --git a/mkosi.postinst b/mkosi.postinst new file mode 100755 index 0000000000..1bbb9e41c5 --- /dev/null +++ b/mkosi.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +set -e + +mkdir -p /root/build +echo "directory /root/build" > ~/.gdbinit