- modules-setup.sh should be module-setup.sh in dracut, also 755 - add dependency on systemd-journald.socket to make haveged really start before journald in the initrd. bsc#898669 OBS-URL: https://build.opensuse.org/request/show/335611 OBS-URL: https://build.opensuse.org/package/show/security/haveged?expand=0&rev=103
22 lines
528 B
Bash
22 lines
528 B
Bash
#!/bin/bash
|
|
# -*- 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
|
|
mkdir "$initdir/$systemdsystemunitdir/systemd-journald.service.wants"
|
|
ln_r "$systemdsystemunitdir/haveged.service" "$systemdsystemunitdir/systemd-journald.service.wants/haveged.service"
|
|
}
|