From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 20 Feb 2026 16:55:25 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f57.google.com (mail-wm1-f57.google.com [209.85.128.57]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 61KFtOXn005282 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 20 Feb 2026 16:55:24 +0100 Received: by mail-wm1-f57.google.com with SMTP id 5b1f17b1804b1-4836fbfa35csf15302245e9.1 for ; Fri, 20 Feb 2026 07:55:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1771602919; cv=pass; d=google.com; s=arc-20240605; b=JlzgMF07zGny1dQmTc7VCbaq+QbfBh9VPQAGX8NMHELIpH8R2FluREkdR/UF3k8duF AJP4+itqAfXVbdJf7DxBPhZnF3MtmFQIXsyOPQR6u4UC5mneXMRQKYlJQZwfAVUR6stj 9L8bH5oI+ozS3ffN84O/oRsVFqd+UWPruWkgFfdVmIbNB9lvWJgz2Dpaw77Vhdy53yqf dKoLD+vZ4L03vo7j8FWKWmMPJ36EBbS1k1LRzx22uQxmcrD6lZXh9p394+q3Oc2sx4rQ 0WQV4IHZvN2RMkEHy0ttMl0zL7LhAR+snp7a6gP//XuuSJeMveKzlrrA3Rs38q4Ha37y oh0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=xtwxwc9ef85MZkvpEu21KVaDi/mr3tFYjBJSdzhN4gA=; fh=zoLFatzwZkvQYkSUI/NKyFdwBypqNGGfzHH0XVgr39M=; b=AEp3OUgdYagwTqlO8xSDYQG+UBI5qHXClax+ZiKIdXJXcX7afw/gRmhrChQsK7PlwD p0OdSFmogo83CF0zPi0+rM5TIdYONyhaAZTTRghleu5/w0HXf3kYKJvSuQih3OhnC2Pm dgQ3bT2S2MbhExPfyGTzNPAL3wNmUTg+3ZQiTBmxRLenPp2JvTWfFEtfjK9uoE/TIVoc lneBYa9GZ52ZosCqvtFFM4mSR4rJoJiumJty0kxoGkcITYFHhpM8+tg3lWxogwKzKM+q JgdbPnTYdPcgn4dmrTy1BNW8Y5zNi3vbG8yhwL7h7QjWauY4f18pRd8cEXFHuOOaMxNJ SroA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1771602919; x=1772207719; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:from:content-language:references:to :subject:user-agent:mime-version:date:message-id:sender:from:to:cc :subject:date:message-id:reply-to; bh=xtwxwc9ef85MZkvpEu21KVaDi/mr3tFYjBJSdzhN4gA=; b=xdGW71HiuO5hxm5IiJ+qCkQZe46oUrbGs3/yAhBcorS7mnUH/m5JJnkFxPGQTQ9Nfy LmNqd6BQZXK5SRGe0eJHXLGKS3UFaGAyPEsN6PG1x+oQBC17lu0cmZ9JtjHJJ/+O1sPL RRdhvDY/F1FGn6SpsPShcFGFBlAuoEjRBBD2HnEg9vqqXcUUmfItuhYcXwKZ9PRIwSox c6p1kKlr5afJcaumgu+eBECFVHvS2+xj14XE1h7QYqiVUrtAEbB8b74E91tL6h1uOT1Z xXoYjL4qXZHiZ9WahIHJ/4bDkmtzIu0fXF78kVsvVg2D7zPMV2/K1kPcmsKGzokcbfIA lLgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771602919; x=1772207719; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:in-reply-to :from:content-language:references:to:subject:user-agent:mime-version :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=xtwxwc9ef85MZkvpEu21KVaDi/mr3tFYjBJSdzhN4gA=; b=h8xIlxoNXT6+GLFgoOjqh1E0JsW8B2Zv3fRPtGIaU1cN6HFAM4hG/SU703MGXVSpmg 4AvKQRE86J61VBp0rlj5Yjm1W/eLuI/1m/2HP2xqhwJ98uUA5e+tq7Q8NzgyNJT95HSl 12O2JrBniR3fnzXX3ohk0gNfCg30urNYdNrxuR71hM4NtR8HbEBtCcCKs/jDYMYvFCwz 8S+GqzBmYWGT1z2yaSFc77Mf5HA7no6wgwU/+8pgz5zIsPUi8DcvHuJZo6g93Y/Kewi0 ReX+G0/3DNdykCH1AJbY0glsiVJJ6zRJCjaKXxEc080H9NkzlvmwhryKc43VCmu9q2PS zuaw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCV/3AqIj2069aK1Nq7LdjjDI3U7Os1QAra+ILsooVe/q8vD6+Lv8D4Klt99dcE5jjumFqDh@ilbers.de X-Gm-Message-State: AOJu0Yzclx3nV24dxlll+VbX48K8TS0gxJ3K3Fhn8L8y6HcP0JJbKcJr QUZwQy37Y6mWu7XBcS2NMzYYSw5lten7FNOQbNPmqIpjQxhRTTpsvqxn X-Received: by 2002:a05:600c:1e24:b0:483:a21:774c with SMTP id 5b1f17b1804b1-4839e668a55mr117539745e9.25.1771602918894; Fri, 20 Feb 2026 07:55:18 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="AV1CL+GLPJJFClv1E6UzLsFywYjXTi/2OptJjrZ6SO0dbtVXjw==" Received: by 2002:a05:600c:1c18:b0:483:a26d:128e with SMTP id 5b1f17b1804b1-483a26d13bels15534325e9.1.-pod-prod-01-eu; Fri, 20 Feb 2026 07:55:16 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWOHXjMtah3QcCNne5vi23FMEpsYFn4GGyGm1o+y90F6uF04uOdUnB1cM2iOJqb2SEj0EAdw8McL5c1@googlegroups.com X-Received: by 2002:a05:600c:19ce:b0:47e:e78a:c833 with SMTP id 5b1f17b1804b1-4839e66b48amr95331405e9.32.1771602916686; Fri, 20 Feb 2026 07:55:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771602916; cv=none; d=google.com; s=arc-20240605; b=bwzENQ117pIKmzlqhJ4HaW6jcdeL/DbRplaw6V36kWlQwX0zdd3J+jseuUFGH7RmFj /u2C3n147C+Rwr1VRoZc8Uid9blIDnU4zfNHNgdTfK4FSPZxH+kGszXTkFN+ycCsx1l8 lqbUYXrL1xaTrlTftcmd87CwNwC7FdLB/DemrU4s1EfUuZeeoMGyHX2qf2TKeQM9nvz9 HMm8EGX+Gntst1u2gZEmPMskYQhlINd3EmMG/nstS4XBWuvEdc6RcnBe8sjSbVOK/szF ftAeCNflwUQV1b1GLLm75MPQiDxcbYJzqbP/ZFi8GKCvL/gECqTxU3GiIUd92wLyCKWv wRAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=N7dGNwAetOwtyOZwNwAfOysAVKE+N/uvciYIL+JEUJE=; fh=O+ZMFUiiuyZKsfz7Fw8hsdknZlxcSFSsLsCydBEGD0o=; b=NBPRuppe0QzmBElVeHd4Ls01A+9giThMonv7M+CpSmJJrbb3UUfYL7khitmyqDT7zb 3mZvd8ND43dSbmCmo2rVh6kMvq/rIc4gXF1ZLovOb5D5Cocpfs+cdKuhkQbV8cFaEfpo 8kD8OOvXxsRNKeMFqR04gKLxZcbUovHkW30azPcy88wr5hgwA0gOypQF9vZwmXq4rAge zUpXaIcKLjjhBAYjqoyy0kERKQgMwQ3pmfDIfavus2fWIK/IB/o6DefWkbmZgVFy/nZZ /w9mkEzrL61+yiVxfGsvy2uSuTDL4xThgqj1WvuRqTkZnGPkPfWHb27zfgYfFf8Xhz7R dlvw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-43796ad0924si553501f8f.7.2026.02.20.07.55.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Feb 2026 07:55:16 -0800 (PST) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.117] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 61KFtFS7005275 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Feb 2026 16:55:15 +0100 Message-ID: <42fb7bd5-985d-4cf0-8c37-6fa93aa6df5c@ilbers.de> Date: Fri, 20 Feb 2026 16:55:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] qemuarm-trixie: Workaround with missing drivers in qemuarm-trixie initramfs To: Jan Kiszka , isar-users@googlegroups.com References: <20260220144259.1876444-1-wzh@ilbers.de> <6a4c8dd5-16b4-48f5-8164-ab0a28534956@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <6a4c8dd5-16b4-48f5-8164-ab0a28534956@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: e4ynAJqREGAh On 2/20/26 16:36, Jan Kiszka wrote: > On 20.02.26 15:42, Zhihang Wei wrote: >> This is a workaround to fix the current qemuarm-trixie image unbootable >> issue. >> >> Starting with Debian Trixie, update-initramfs invokes "dracut-install" >> to collect and install required drivers into the generated initramfs. >> "dracut-install" relies on fts_open() / fts_read() from glibc to >> traverse directories and locate drivers. >> >> Due to a long-standing bug [1] between qemu and glibc, the fts_* >> functions may fail to find files on certain 32-bit architectures. As a >> result, required modules such as virtio_blk are not detected and not >> added to the initramfs. The produced image then fails to boot under >> qemu because the block device driver is missing. >> >> A similiar dracut bug report was filed in 2024 [2], pointing to this >> upstream glibc issue reported in 2018 [1]. No upstream fix has been >> applied, and the issue appears to affect only qemu builds for specific >> 32-bit targets. >> >> As a temporary workaround, use a customized initramfs-hook to append >> the neccessary drivers that are currently missed from the initramfs. >> >> For a complete fix, we either need to push for an upstream glibc/qemu >> fix, or convince dracut to avoid using these non-POSIX fts_* functions >> and use opendir() / readdir() instead. >> >> [1] https://sourceware.org/bugzilla/show_bug.cgi?id=23960 >> [2] https://bugs-devel.debian.org/cgi-bin/bugreport.cgi?bug=1079443 >> >> Signed-off-by: Zhihang Wei >> --- >> Changes in v2: >> - Use initramfs-hook to install the driver, instead of adding another >> variable >> >> meta-isar/conf/multiconfig/qemuarm-trixie.conf | 4 +++- >> .../initramfs-virtio-blk-hook_0.1.bb | 8 ++++++++ >> 2 files changed, 11 insertions(+), 1 deletion(-) >> create mode 100644 meta/recipes-initramfs/initramfs-virtio-blk-hook/initramfs-virtio-blk-hook_0.1.bb >> >> diff --git a/meta-isar/conf/multiconfig/qemuarm-trixie.conf b/meta-isar/conf/multiconfig/qemuarm-trixie.conf >> index 5600ab23..20eecd92 100644 >> --- a/meta-isar/conf/multiconfig/qemuarm-trixie.conf >> +++ b/meta-isar/conf/multiconfig/qemuarm-trixie.conf >> @@ -1,7 +1,9 @@ >> # This software is a part of Isar. >> -# Copyright (C) 2024 ilbers GmbH >> +# Copyright (C) 2024-2026 ilbers GmbH >> # >> # SPDX-License-Identifier: MIT >> >> MACHINE ?= "qemuarm" >> DISTRO ?= "debian-trixie" >> + >> +IMAGE_INSTALL += "initramfs-virtio-blk-hook" > This covers the initramfs-tools based generation. What if someone > enables dracut (kas/opt/dracut.yaml)? A pure dracut generated initramfs for qemuarm-trixie cannot boot. It surprisingly has virtio_blk, but still not bootable. Need to find the reason. Actually, there should be more drivers installed into initramfs by initramfs-tools, but they are now missing due to the same bug. Adding virtio-blk just makes this initramfs-tools generated initramfs "minimally" bootable. My guess is that the dracut generated initramfs is missing some other necessary drivers. Zhihang >> diff --git a/meta/recipes-initramfs/initramfs-virtio-blk-hook/initramfs-virtio-blk-hook_0.1.bb b/meta/recipes-initramfs/initramfs-virtio-blk-hook/initramfs-virtio-blk-hook_0.1.bb >> new file mode 100644 >> index 00000000..229d91d6 >> --- /dev/null >> +++ b/meta/recipes-initramfs/initramfs-virtio-blk-hook/initramfs-virtio-blk-hook_0.1.bb >> @@ -0,0 +1,8 @@ >> +# This software is a part of Isar. >> +# Copyright (C) 2026 ilbers GmbH >> +# >> +# SPDX-License-Identifier: MIT >> + >> +inherit initramfs-hook >> + >> +HOOK_ADD_MODULES = "virtio-blk" > Jan > -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/42fb7bd5-985d-4cf0-8c37-6fa93aa6df5c%40ilbers.de.