diff options
author | jirka-h <hladky.jiri@gmail.com> | 2021-10-28 20:43:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 20:43:08 +0200 |
commit | 83c221ee6654df6cf2249aa74bbf1c2dcc94f91a (patch) | |
tree | 5b2e644da0d74b745aff8da4ef272f3e31085941 /contrib/Kali_Linux_raspberry/haveged-dracut.module | |
parent | Bumped version to v1.9.16 (diff) | |
parent | Add files via upload (diff) | |
download | haveged-83c221ee6654df6cf2249aa74bbf1c2dcc94f91a.tar.xz haveged-83c221ee6654df6cf2249aa74bbf1c2dcc94f91a.zip |
Merge pull request #65 from Terraminator/master
fixes #63
Diffstat (limited to 'contrib/Kali_Linux_raspberry/haveged-dracut.module')
-rw-r--r-- | contrib/Kali_Linux_raspberry/haveged-dracut.module | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/Kali_Linux_raspberry/haveged-dracut.module b/contrib/Kali_Linux_raspberry/haveged-dracut.module new file mode 100644 index 0000000..ed5f851 --- /dev/null +++ b/contrib/Kali_Linux_raspberry/haveged-dracut.module @@ -0,0 +1,26 @@ +#!/bin/bash +# /usr/lib/dracut/modules.d/98haveged/module-setup.sh +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +# called by dracut +depends() { + return 0 +} + +installkernel() { + return 0 +} + +# called by dracut +install() { + inst_multiple -o \ + /usr/sbin/haveged \ + $systemdsystemunitdir/haveged.service \ + $systemdsystemunitdir/haveged-switch-root.service + mkdir -p "$initdir/$systemdsystemunitdir/sysinit.target.wants" + mkdir -p "$initdir/$systemdsystemunitdir/initrd-switch-root.target.wants" + mkdir -p "$initdir/$systemdsystemunitdir/systemd-journald.service.wants" + ln_r "$systemdsystemunitdir/haveged.service" "$systemdsystemunitdir/systemd-journald.service.wants/haveged.service" + ln_r "$systemdsystemunitdir/haveged-switch-root.service" "$systemdsystemunitdir/initrd-switch-root.target.wants/haveged-switch-root.service" +} |