From: Daan De Meyer Date: Sat, 23 Jan 2021 17:26:33 +0000 (+0000) Subject: mkosi: Add a postinstall script to setup .gdbinit. X-Git-Tag: v248-rc1~208^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8067d40412935e5a317181fb5ea8365819271a1;p=thirdparty%2Fsystemd.git 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. --- diff --git a/mkosi.postinst b/mkosi.postinst new file mode 100755 index 00000000000..1bbb9e41c50 --- /dev/null +++ b/mkosi.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +set -e + +mkdir -p /root/build +echo "directory /root/build" > ~/.gdbinit