Add systemd override for haveged in xenial and stretch. (#2161)

Reenable haveged.service after debian package installation
This commit is contained in:
unman 2016-11-14 02:33:20 +00:00
parent 0fb3e503d3
commit 58febd6d20
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
3 changed files with 28 additions and 0 deletions

View File

@ -263,6 +263,11 @@ else
install -m 0644 misc/py2/xdg.py* $(DESTDIR)/$(PYTHON_SITEARCH)/qubes/
endif
ifneq (,$(filter xenial stretch, $(shell lsb_release -cs)))
mkdir -p $(DESTDIR)/etc/systemd/system/
install -m 0644 vm-systemd/haveged.service $(DESTDIR)/etc/systemd/system/
endif
install -d $(DESTDIR)/mnt/removable
install -D -m 0644 misc/xorg-preload-apps.conf $(DESTDIR)/etc/X11/xorg-preload-apps.conf

View File

@ -111,6 +111,7 @@ case "${1}" in
# Maybe install overridden serial.conf init script
installSerialConf
fi
systemctl reenable haveged
debug "UPDATE..."
# disable some Upstart services

View File

@ -0,0 +1,22 @@
[Unit]
Description=Entropy daemon using the HAVEGE algorithm
Documentation=man:haveged(8) http://www.issihosts.com/haveged/
DefaultDependencies=no
ConditionVirtualization=!container
After=apparmor.service systemd-random-seed.service systemd-tmpfiles-setup.service
[Service]
EnvironmentFile=/etc/default/haveged
ExecStart=/usr/sbin/haveged --Foreground --verbose=1 $DAEMON_ARGS
SuccessExitStatus=143
SecureBits=noroot-locked
NoNewPrivileges=yes
CapabilityBoundingSet=CAP_SYS_ADMIN
PrivateTmp=yes
PrivateDevices=yes
PrivateNetwork=yes
ProtectSystem=full
ProtectHome=yes
[Install]
WantedBy=multi-user.target