diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-01-23 17:26:33 +0000 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-01-30 13:28:34 +0000 |
commit | d8067d40412935e5a317181fb5ea8365819271a1 (patch) | |
tree | 8e968fc9159b8ee9411744e022423642a911b9c8 /mkosi.postinst | |
parent | 7a1fed85d7b84cfc9c494d5fd62cf7024046aec9 (diff) | |
download | systemd-d8067d40412935e5a317181fb5ea8365819271a1.tar.gz |
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.
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-x | mkosi.postinst | 5 |
1 files changed, 5 insertions, 0 deletions
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 |