From patchwork Thu Nov 4 09:05:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4832 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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4HlJJy2r3bz3wb6 for ; Thu, 4 Nov 2021 09:30:26 +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) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4HlJJn3Nf0z2DD; Thu, 4 Nov 2021 09:30:17 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4HlJJl03KNz2yxk; Thu, 4 Nov 2021 09:30:15 +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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4HlJJj3fWtz2ySg for ; Thu, 4 Nov 2021 09:30:13 +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 4HlJJg23VjzcB; Thu, 4 Nov 2021 09:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1636018211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kn+EOnURgcoRcBvqJLjCv5oM6K3VTIvF8yn4EVBm8Vs=; b=aqUdEcKur3OtZD8GOgR60cM43Dfi6vmphUaEnRoiEDt2ykEBfHdaOgFzik5LXNOb868OIU d3ab67rpxJqNEigZms1HmdgivPb4AC7tB22Su+SkBlY5D+BKMxM6YycK3+0iPqWCXWJf9s 2kLkBg927j9LTavlIEvBp8B7GeFhbVZZ9K8nVjeiYID7fF+dqKQnnCimHhGwDycxvCOpfA QCV6+XDsm+SCw403/Oe6/dL3TlRWw5vu1b1/u4v5Dwq505MJ8QOYFKcbYFYr1tcKAaUnd3 uYTLpapOaLpHOuTtc4+bs0s/HgrPCd5VoHrq2RX9oyunsHCz+qamHjdEN4hzog== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1636018211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kn+EOnURgcoRcBvqJLjCv5oM6K3VTIvF8yn4EVBm8Vs=; b=VqvnO6H5klmkI9TY1narEmgQdfFxQnWBmRewhhBuWZ/quEAE9Dr+OrFz/Gd3uvu88VSJgo Y2j7dmbIYtMvX9CQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/3] installer: Setup efivarfs when possible Date: Thu, 4 Nov 2021 09:05:53 +0000 Message-Id: <20211104090554.6510-2-michael.tremer@ipfire.org> In-Reply-To: <20211104090554.6510-1-michael.tremer@ipfire.org> References: <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/installer/dracut-module/module-setup.sh | 1 + src/installer/dracut-module/run-installer.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/installer/dracut-module/module-setup.sh b/src/installer/dracut-module/module-setup.sh index 29ec4c0d7..9c3a5d03e 100755 --- a/src/installer/dracut-module/module-setup.sh +++ b/src/installer/dracut-module/module-setup.sh @@ -23,6 +23,7 @@ install() { # Kernel drivers instmods =drivers/hid + instmods efivarfs # Network drivers instmods =drivers/net/ethernet =drivers/net/usb diff --git a/src/installer/dracut-module/run-installer.sh b/src/installer/dracut-module/run-installer.sh index 33c8c4b10..755de1d3a 100644 --- a/src/installer/dracut-module/run-installer.sh +++ b/src/installer/dracut-module/run-installer.sh @@ -8,6 +8,11 @@ if grep -q "installer.unattended" /proc/cmdline; then unattended=1 fi +# Mount efivarfs on EFI systems +if [ -d "/sys/firmware/efi" ]; then + mount -t efivarfs efivarfs /sys/firmware/efi/efivars +fi + # Enable Unicode echo -en '\033%G' && kbd_mode -u