From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1prdkt-00012E-BH for mharc-grub-devel@gnu.org; Wed, 26 Apr 2023 07:56:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prdkq-00010i-Ub for grub-devel@gnu.org; Wed, 26 Apr 2023 07:56:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prdko-00022Q-7T for grub-devel@gnu.org; Wed, 26 Apr 2023 07:56:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682510168; 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: in-reply-to:in-reply-to:references:references; bh=1/4hhdwPTFaLBpBw/Mtnq59rtybf3TCKe48uOTy405s=; b=bwt8W+WVeBe/rWcGcXY/kvtm2pFqg6OtG7tcET0loE1PxkBeHlq+iQm/UhtXvgUVt/qNhb Np7/rVrCiuPHF6RgqHfusNIQarj9ub67nw2UrUKUecLv6AyB3/XsWosFsMTP7BMSSx05io Dhx0V2YheThwtVYefLdweozbh0l3r3U= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-568-zOXwcksMM2mjVg8SNQ0BnQ-1; Wed, 26 Apr 2023 07:56:07 -0400 X-MC-Unique: zOXwcksMM2mjVg8SNQ0BnQ-1 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-3ef5bad5aedso76443281cf.1 for ; Wed, 26 Apr 2023 04:56:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682510166; x=1685102166; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1/4hhdwPTFaLBpBw/Mtnq59rtybf3TCKe48uOTy405s=; b=LU7gTn4C+wQuviitEi5Ip5SkxFnM0dS4E3ifEk9ZEPpUxlTYqBbVvMq9YQukXATrhe 0NGCOfe65zIBARS2Zuwh7ZFlmxyvE2UNrptiVpGeQ2NngnwRnR0vPrMDn2xKpzyIHreG yrpf4cBbQ854ItsY+pYZrqmG9e5hxqeixgHOs7q6yojvD7eAzzjoRSvQed/A95ofvW5B l3pGQ/eTqE9SES+flZVKBsq336+7i3vjoq6zBQfBkKf3eXAgNlrTip6TlPeysi0R2KdE 3xsqoyKq0X1sytxrhn+2DI6QEEtbAVpjnKllyTb1ztsTi0a7yt9LJmIPWJe2Ztj2tD3q WbSA== X-Gm-Message-State: AAQBX9e1Mtw4dHEzfAKFg75sioImrL8IwEqEpklfKEBcN6WjzENoO3HX 2AIOfInC8NAr2PIvp9nTz0rLgdlb0UFl4Lk8aiROlbfw0nm2ALYn/5VKi8cV3szQNULc91L8xWa X2C/yKU1MwyI= X-Received: by 2002:ac8:570e:0:b0:3ef:7975:99d0 with SMTP id 14-20020ac8570e000000b003ef797599d0mr20466516qtw.31.1682510166578; Wed, 26 Apr 2023 04:56:06 -0700 (PDT) X-Google-Smtp-Source: AKy350YMMxiO6hRbjOyaOaN1I45pwRXtPn3nt5dtTx6QMIiyf5kTpHzS0nZASPqBP0ihPhny7fX9hA== X-Received: by 2002:ac8:570e:0:b0:3ef:7975:99d0 with SMTP id 14-20020ac8570e000000b003ef797599d0mr20466499qtw.31.1682510166263; Wed, 26 Apr 2023 04:56:06 -0700 (PDT) Received: from localhost ([2600:4040:5204:6800:da7c:a2cd:3b13:a673]) by smtp.gmail.com with ESMTPSA id y26-20020a05620a0e1a00b0074f4edb7007sm2608607qkm.112.2023.04.26.04.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 04:56:05 -0700 (PDT) From: Robbie Harwood To: Chris Coulson , grub-devel@gnu.org Cc: daniel.kiper@oracle.com, Chris Coulson Subject: Re: [PATCH] font: Try opening fonts from the bundled memdisk In-Reply-To: <20230426100652.150775-1-chris.coulson@canonical.com> References: <20230426100652.150775-1-chris.coulson@canonical.com> Date: Wed, 26 Apr 2023 07:56:01 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=170.10.133.124; envelope-from=rharwood@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.171, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2023 11:56:13 -0000 --=-=-= Content-Type: text/plain Chris Coulson writes: > Grub since 93a786a00163e50c29f0394df198518617e1c9a5 has enforced > verification of font files in secure boot mode. In order to continue to > be able to load some default fonts, vendors may bundle them with their > signed EFI image by adding them to the built-in memdisk. > > This change makes the font loader try loading fonts from the memdisk > before the prefix path when attempting to load a font file by specifying > its filename, which avoids having to make changes to grub configurations > in order to accommodate memdisk bundled fonts. It expects the directory > structure to be the same as fonts stored in the prefix path > (ie, /fonts/.pf2). > > Signed-off-by: Chris Coulson Thanks for posting this. Reviewed-by: Robbie Harwood Be well, --Robbie --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEA5qc6hnelQjDaHWqJTL5F2qVpEIFAmRJEVEUHHJoYXJ3b29k QHJlZGhhdC5jb20ACgkQJTL5F2qVpELPOw/+K1zw2Y+4pJgoJKm4WCdYpE57w39V WkZOkBtFBqO6Xcmrz1c2+gRm0rk8YYFlT0kQa8BVlLg2tiKzrKIosNZtkqDvikc3 dcBOy/UfVNc0LpNcItwpVZ990zGtjqKZKw6Nc4j5kw/gnNSyKjZ1PA3ipL67UZ1g +iI4RK4a+gLabXlPtJV/Ys+PySZDH0Fkr+zOheAvlRIYWERkudXv/ScWujxAduBS 7rgBDmTLYUa3a6ICIFcDwZE0UXdHd7fCAYFcugvvBbl/1fIiz+ujVFI13sFo4bwY 1IfdYxfv0/6kaO8666+sh/DXAri03sMjfdIV2BTiICSl1yMnUNO7EWy+B8w8ZmhN WepHcYop9r4Wd6q/gyHDi+PTI89sSOrUREIYZSStoY2UfH3GVRmIzzHFIjmBAtsE m6dg2Bk1UQ5aO3dH89+I6S5FfuD6hpOFQJyDXiN9ilK7iZolSJ0HjFyjucp7c4Yh C7TW2s3yRSjAiZNB5piU2NX9LD2L/m0LKaLirblm9dj/CB1rmMYXsZlq64RGScwC bdcU9KhhSrrbWPJa5pQeWkeyIjQFIB+y4KCLpw38eeUnKy3Khx3sDOBgkvxQQ1aK 7KJfW7xAx0akW9ilTlk+iMFlEWuiR7Z5gNGzeX00qHT62QzSH2V9pEohVOrsbGTe u63MklzPjC17KJA= =nEL4 -----END PGP SIGNATURE----- --=-=-=--