From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.mars-solutions.de ([213.239.212.107]) by metis.ext.pengutronix.de with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1itfyj-0007Cn-Ud for ptxdist@pengutronix.de; Mon, 20 Jan 2020 23:57:07 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.mars-solutions.de (Postfix) with ESMTP id 0E6304F4342C for ; Mon, 20 Jan 2020 23:57:05 +0100 (CET) Received: from mail.mars-solutions.de ([127.0.0.1]) by localhost (mars-solutions.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C+9+kDnqHwnc for ; Mon, 20 Jan 2020 23:57:04 +0100 (CET) Received: from ws-apr-old.office.loc (ipbcc2af82.dynamic.kabel-deutschland.de [188.194.175.130]) by mail.mars-solutions.de (Postfix) with ESMTPA id D86144F4342C for ; Mon, 20 Jan 2020 23:57:04 +0100 (CET) From: Andreas Pretzsch Date: Mon, 20 Jan 2020 23:57:02 +0100 Message-Id: <1579561024-27501-1-git-send-email-apr@cn-eng.de> Subject: [ptxdist] [PATCH 0/2] haveged: systemd service: move earlier in startup List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On a device with defective HW RNG here, it takes quite long until the bootup is finished, as kernel random is not seeded. Leading to blockings for anything needing /dev/random. As kind of a workaround (until I fixed the HW RNG driver), I pulled in haveged. To work as expected, I needed to move haveged startup in systemd to a more earlier point. This patch series is probably NOT for inclusion to PTXdist mainline. In a first step, haveged should be updated to the latest 1.9.8 release. Also, all of this here is NOT really tested or well thought out. It just works for me (tm). I send it, in case somebody else has the same trouble to workaround. Andreas Pretzsch (2): haveged: systemd service: import haveged.service from haveged 1.9.2 source haveged: systemd service: move from multi-user.target to sysinit.target projectroot/usr/lib/systemd/system/haveged.service | 12 ++++++++++++ rules/haveged.make | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 projectroot/usr/lib/systemd/system/haveged.service -- 2.19.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de