From nobody Sun Nov 9 13:02:43 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1645227090; cv=none; d=zohomail.com; s=zohoarc; b=CGyVHlAcZSbhmawD/T7Ct4ZPbMBErIAtBreO61jl6Omz6X0SlwrLF9z7gAZQELKqhu0AitNEZpNNlHdeSLq/LV9g4kYkDFWkmACd33yxUap5H+i2K3Gh5+d3q4xrIogdZZZSZKugS9l+tsAo3U9yxCcHnY2oGsZFcJEGWcl3/Ys= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1645227090; h=Content-Type:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=qOUBL4d5Ufh7DjtGqWSGV0eyzO8Aujn3hfjPIfhcDFw=; b=FFUiT/iSJddBaqlKJ5bepf3JFUhMnGXKUdM6UFopyLOBMt2qZC12XOxEYtytG6odVCZ91rgWu56pnUjXmGgeqaC4of0HhZZ9doo7lEbiPmyd9RODKGpLdohrO9gfpYQqG3vBTC6qOFzjjaZbwBRTNYZzOTjmB1ojhrSKhbsnG5A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 16452270905281018.0570516364323; Fri, 18 Feb 2022 15:31:30 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.275657.471616 (Exim 4.92) (envelope-from ) id 1nLCiO-00019R-4o; Fri, 18 Feb 2022 23:31:04 +0000 Received: by outflank-mailman (output) from mailman id 275657.471616; Fri, 18 Feb 2022 23:31:04 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nLCiO-00019K-1i; Fri, 18 Feb 2022 23:31:04 +0000 Received: by outflank-mailman (input) for mailman id 275657; Fri, 18 Feb 2022 23:31:02 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nLCiM-00019E-ON for xen-devel@lists.xenproject.org; Fri, 18 Feb 2022 23:31:02 +0000 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id d49be2b6-9112-11ec-8eb8-a37418f5ba1a; Sat, 19 Feb 2022 00:31:01 +0100 (CET) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BF80BB826FE; Fri, 18 Feb 2022 23:30:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32074C340E9; Fri, 18 Feb 2022 23:30:58 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d49be2b6-9112-11ec-8eb8-a37418f5ba1a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645227058; bh=88AERh/QkWzUu4pRpqNxx4VC/sjCyonupm8mVWsqANU=; h=Date:From:To:cc:Subject:From; b=N/QZgOY2kQPQH+hQzqOuD6+Bg3tMcLQY6EaiC4Pyq+dDoQ9oDq0J+F5cSu97fo3H6 8nEqJ2nhiampaMbr9u3HqmT69COLhQCDPQRBeSo5TKH4luLMUwn7dh4/3DWXNKaSGj MeuaiiMuAmmWl5OuTZ9AaJnybUdFLEuedmWjlMTAX/WApLogGjrhSVsAspt1fUEtcs t3KzS0pMEG5X9c3i4g5QInvZQdnhswMtVUlLjfKu9bmZJQBC2yLiq5f5+IAV8cJKZf jP6gzUt0D4OGRj0HliKS62Td+jFMqdLlLK3BpdzQcEyZID5eATH6jS9yBrmlUTfPDh DFm9LfKHBG2yg== Date: Fri, 18 Feb 2022 15:30:56 -0800 (PST) From: Stefano Stabellini X-X-Sender: sstabellini@ubuntu-linux-20-04-desktop To: anthony.perard@citrix.com, wl@xen.org cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, christopher.w.clark@gmail.com, jgross@suse.com, bertrand.marquis@arm.com Subject: [PATCH] tools/hotplug: don't install init.d scripts if SYSTEMD Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1645227091726100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When Xen is configured with --with-systemd currently both the systemd init scripts as well as the traditional init.d scripts (e.g. xencommons) are installed. This causes issues to distros where old style init scripts are still supported even when systemd is enabled, e.g. Yocto. The consequence is that xenconsoled (and other daemons) are executed twice resulting in errors at boot. If --with-systemd don't install xencommons and the other sysvinit scripts. Signed-off-by: Stefano Stabellini diff --git a/tools/hotplug/Linux/Makefile b/tools/hotplug/Linux/Makefile index 0b1d111d7e..03ed00ca70 100644 --- a/tools/hotplug/Linux/Makefile +++ b/tools/hotplug/Linux/Makefile @@ -47,10 +47,12 @@ install-initd: $(INSTALL_DATA) init.d/sysconfig.xendomains $(DESTDIR)$(SYSCONFIG_DIR)/xe= ndomains $(INSTALL_DATA) init.d/sysconfig.xencommons $(DESTDIR)$(SYSCONFIG_DIR)/xe= ncommons $(INSTALL_PROG) xendomains $(DESTDIR)$(LIBEXEC_BIN) +ifndef CONFIG_SYSTEMD $(INSTALL_PROG) init.d/xendomains $(DESTDIR)$(INITD_DIR) $(INSTALL_PROG) init.d/xencommons $(DESTDIR)$(INITD_DIR) $(INSTALL_PROG) init.d/xendriverdomain $(DESTDIR)$(INITD_DIR) $(INSTALL_PROG) init.d/xen-watchdog $(DESTDIR)$(INITD_DIR) +endif =20 .PHONY: uninstall-initd uninstall-initd: