tests: add create_strace_wrapper

Very handy for early-boot debugging
See https://github.com/systemd/systemd/pull/2781#discussion_r54782628
This commit is contained in:
Evgeny Vereshchagin 2016-03-04 01:55:46 +00:00
parent 9f0cd100d0
commit 45dbd7b6cb

View file

@ -194,6 +194,17 @@ EOF
chmod 0755 $_valgrind_wrapper
}
create_strace_wrapper() {
local _strace_wrapper=$initdir/$ROOTLIBDIR/systemd-under-strace
ddebug "Create $_strace_wrapper"
cat >$_strace_wrapper <<EOF
#!/bin/bash
exec strace -D -o /strace.out $ROOTLIBDIR/systemd "\$@"
EOF
chmod 0755 $_strace_wrapper
}
install_fsck() {
dracut_install /sbin/fsck*
dracut_install -o /bin/fsck*