Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #92461

Re: [RFC] Using SimpleDRM in the initramfs

Path csiph.com!weretis.net!feeder8.news.weretis.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From Ben Hutchings <benh@debian.org>
Newsgroups linux.debian.kernel, linux.debian.maint.boot
Subject Re: [RFC] Using SimpleDRM in the initramfs
Date Mon, 11 May 2026 19:00:01 +0200
Message-ID <MTC93-4ohT-1@gated-at.bofh.it> (permalink)
References <MThnX-49Ww-1@gated-at.bofh.it> <MTA7f-4mTj-1@gated-at.bofh.it>
X-Mailbox-Line From debian-kernel-request@lists.debian.org Mon May 11 16:53:01 2026
Old-Return-Path <benh@debian.org>
X-Amavis-Spam-Status No, score=-115.217 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.445, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3, SARE_MSGID_LONG40=0.637, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=unavailable autolearn_force=no
Organization Debian
Content-Type multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-DjDaqPWspvvwAJmPFA1W"
User-Agent Evolution 3.56.2-9
MIME-Version 1.0
X-Debian-User benh
X-Mailing-List <debian-kernel@lists.debian.org> archive/latest/155210
List-ID <debian-kernel.lists.debian.org>
List-URL <https://lists.debian.org/debian-kernel/>
List-Archive https://lists.debian.org/msgid-search/ff080feb4ce6cb08a45d21bbc1ade1d6967e96fe.camel@debian.org
Approved robomod@news.nic.it
Lines 78
Sender robomod@news.nic.it
X-Original-Cc Debian kernel maintainers <debian-kernel@lists.debian.org>, Debian installer maintainers <debian-boot@lists.debian.org>, GRUB Maintainers <pkg-grub-devel@alioth-lists.debian.net>, plymouth@packages.debian.org, Luca Boccassi <bluca@debian.org>, NoisyCoil <noisycoil@disroot.org>
X-Original-Date Mon, 11 May 2026 18:52:31 +0200
X-Original-Message-ID <ff080feb4ce6cb08a45d21bbc1ade1d6967e96fe.camel@debian.org>
X-Original-References <7e451300e9129f9a466548a3d0b771b236e1b36b.camel@debian.org> <20260511142753.4093672-1-safinaskar@gmail.com>
Xref csiph.com linux.debian.kernel:92461 linux.debian.maint.boot:77477

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, 2026-05-11 at 17:27 +0300, Askar Safin wrote:
> Ben Hutchings <benh@debian.org>:
> > - In the kernel, we cannot assume that an EFI framebuffer is always
> >   usable.  In particular, older versions of GRUB may break it by using
> >   a native graphics driver, but without clearing whatever signals the
> >   kernel that it is available.  This was fixed upstream in the default
> >   config for GRUB 2.14 but we cannot assume that the config change
> >   actually gets applied to existing installations.
> 
> It WILL be applied to existing installations.

That depends on just how much customisation was done.

> Here is upstream commit in question:
> https://cgit.git.savannah.gnu.org/cgit/grub.git/commit/?id=ea0b76dc4a003f2b7f828ef0c24cc8227148b2f8
> 
> It changed file util/grub.d/00_header.in in the repo. It corresponds to
> /etc/grub.d/00_header in installed system. It is script, which is used
> when generating /boot/grub/grub.cfg .
> 
> /etc/grub.d/00_header is present in output of
> "dpkg-query -W -f='${Conffiles}\n' grub-*", but I think that this is
> highly unlikely that users manually edited that file.

It is a conffile, therefore we support users modifying it.

So if we want to make a switch on upgrade we'll have to check the GRUB
configuration to figure out whether that is safe.  That's not actually
possible because the configuration is a script and not static
definitions.  The best I think we can do is "if the GRUB configuration
is unmodified from the shipped files, we can safely switch".

> So the file will be simply replaced on upgrade, and then new /boot/grub/grub.cfg
> will be generated from it.
> 
> Also note that I only was able to reproduce that GRUB bug in Qemu only.
> And I was not able to reproduce it on real hardware.
[...]

But why does that matter?  There are a lot of Debian systems running in
VMs and some fraction of those do have people looking at their graphical
output.

Ben.

-- 
Ben Hutchings - Debian developer, member of kernel, installer and LTS
teams

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

[RFC] Using SimpleDRM in the initramfs Ben Hutchings <benh@debian.org> - 2026-05-10 20:50 +0200
  Re: [RFC] Using SimpleDRM in the initramfs Askar Safin <safinaskar@gmail.com> - 2026-05-11 16:50 +0200
    Re: [RFC] Using SimpleDRM in the initramfs Ben Hutchings <benh@debian.org> - 2026-05-11 19:00 +0200
  Re: [RFC] Using SimpleDRM in the initramfs Askar Safin <safinaskar@gmail.com> - 2026-05-11 18:30 +0200
    Re: [RFC] Using SimpleDRM in the initramfs Ben Hutchings <benh@debian.org> - 2026-05-11 19:10 +0200

csiph-web