From patchwork Thu Nov 4 09:05:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4831 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4HlJJv4L5qz3wb6 for ; Thu, 4 Nov 2021 09:30:23 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4HlJJl4VMdz245; Thu, 4 Nov 2021 09:30:15 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4HlJJj6S0bz2yqh; Thu, 4 Nov 2021 09:30:13 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4HlJJh2gCxz2ySg for ; Thu, 4 Nov 2021 09:30:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4HlJJd2r2CzZS; Thu, 4 Nov 2021 09:30:09 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1636018209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u1aDJ1fRZZDdgPN6nxMbZCQ7A3xQDyo1vcrc+4LY19M=; b=V4eGBvfFejHyVw+jsbQR4HRUElT2AXsz7CuVWyXpKOBKEWbCO3mis7ZYcDX4qp/Max/HaW 7PkaPGk8/CAM7DDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1636018209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u1aDJ1fRZZDdgPN6nxMbZCQ7A3xQDyo1vcrc+4LY19M=; b=p5/bplaxXxoK1Dl7jr7qQURwdFwbHdI23kSAtZln/n/JVm6UKFIycU+0jUC1jrEo9skTrP ATISKXCjX3WDx6hHFlSWbxuzVRv0lG5hiR3aGF6wRZo9Gi+3rWkQ7WwQjKhXIZqgIitOR4 RiBnxPL1NHSE1cHeFtk3yLcdS7Ntaw00y5jElfF16cHTvVg4M3RbOw/ZZ/P4UzBFSR8VBr n8k99kGqsZ5v3FQP4tbTSNiPqfiiM8seTkAc19PJTnVHNzwycnheQ2XQ2tGNAuI27ShVsJ rfcXK3VJxhGwR3yw+Vtaaj+HPYcOT8ewzFdabh6RKDIPn9P0glyrLkbY1gYfMQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 1/3] mountkernfs: Mount /sys/firmware/efi/efivars on EFI systems Date: Thu, 4 Nov 2021 09:05:52 +0000 Message-Id: <20211104090554.6510-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer Reviewed-by: Peter Müller --- src/initscripts/system/mountkernfs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/initscripts/system/mountkernfs b/src/initscripts/system/mountkernfs index 264da24c4..1f1426077 100644 --- a/src/initscripts/system/mountkernfs +++ b/src/initscripts/system/mountkernfs @@ -39,6 +39,11 @@ case "${1}" in mount -t cgroup2 none /sys/fs/cgroup || failed=1 fi + if ! mountpoint /sys/firmware/efi/efivars &>/dev/null && [ -d "/sys/firmware/efi" ]; then + boot_mesg -n " /sys/firmware/efi/efivars" ${NORMAL} + mount -t efivarfs efivarfs /sys/firmware/efi/efivars || failed=1 + fi + # create folder for dhcpcd changeroot mkdir -p /run/dhcpcd/chroot chown dhcpcd:dhcpcd /run/dhcpcd/chroot