2015-02-18 09:13:58 +01:00
|
|
|
#!/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 \
|
2018-07-12 14:26:06 +02:00
|
|
|
$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"
|
2015-10-01 18:54:42 +02:00
|
|
|
ln_r "$systemdsystemunitdir/haveged.service" "$systemdsystemunitdir/systemd-journald.service.wants/haveged.service"
|
2018-07-12 14:26:06 +02:00
|
|
|
ln_r "$systemdsystemunitdir/haveged-switch-root.service" "$systemdsystemunitdir/initrd-switch-root.target.wants/haveged-switch-root.service"
|
2015-02-18 09:13:58 +01:00
|
|
|
}
|