| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
# NB: $moddir only works in install() |
| 4 |
. @dracutstap@/params.conf |
| 5 |
|
| 6 |
# These programs are very likely to already be included by other |
| 7 |
# dracut modules so we're really not adding any weight |
| 8 |
dracut_install bash mkdir |
| 9 |
|
| 10 |
# The real payload... |
| 11 |
inst "$STAPRUN" |
| 12 |
inst "$STAPIO" |
| 13 |
for script in $ONBOOT_SCRIPTS; do |
| 14 |
inst "$CACHE_PATH/$script.ko" |
| 15 |
done |
| 16 |
|
| 17 |
# start-staprun.sh will need a copy of params.conf |
| 18 |
inst_simple "$moddir/params.conf" "/etc/systemtap-params.conf" |
| 19 |
inst_hook cmdline 01 "$moddir/start-staprun.sh" |
| 20 |
|