mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-03 13:47:04 +03:00
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:
parent
9f0cd100d0
commit
45dbd7b6cb
@ -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*
|
||||
|
Loading…
x
Reference in New Issue
Block a user