mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00: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
|
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() {
|
install_fsck() {
|
||||||
dracut_install /sbin/fsck*
|
dracut_install /sbin/fsck*
|
||||||
dracut_install -o /bin/fsck*
|
dracut_install -o /bin/fsck*
|
||||||
|
|
Loading…
Reference in a new issue