소스 검색

debian: postinst: enable haveged only if installed

HW42 9 년 전
부모
커밋
60a181b3f4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      debian/qubes-core-agent.postinst

+ 1 - 1
debian/qubes-core-agent.postinst

@@ -338,7 +338,7 @@ case "${1}" in
                 # "Enable haveged service"
                 /lib/systemd/system/haveged.service)
                     echo "Enabling haveged service"
-                    enableSystemdUnits haveged.service
+                    [ -e /lib/systemd/system/haveged.service ] && enableSystemdUnits haveged.service
                     ;;
 
                 # Install overridden serial.conf init script