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 12:53:50 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f56.google.com (mail-wm1-f56.google.com [209.85.128.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 61KBrnOC004108 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 20 Feb 2026 12:53:49 +0100 Received: by mail-wm1-f56.google.com with SMTP id 5b1f17b1804b1-4836fbfa35csf13738605e9.1 for ; Fri, 20 Feb 2026 03:53:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1771588424; cv=pass; d=google.com; s=arc-20240605; b=UrgLJvn732FMsXz+Zma2EVLbKIDm7K8tw4U4qk6naLaIzkdSTlkzySVQfJKDUYJnlV zwoh7N0q1XyUPIjDaQOCKhOBXwRkdJaK36XKrgMalkRtSz3xZhTIL6FIh9NOrGzLbFGm LppMmT2nIQRfgDFoeAGNur/eKChdzjMIG+AwAToxxQbJnPvMZ98TLCw597+butWL47mw L5O/0lmfif4ZqvGzyBqD4Df/s+LfU0bNTjYFN4Du6sLeHJwszCbwJW2oEgTXwUNT9FQs 5GYt9i2k3cVVLkmFMj32RHapb300l5XHdIsYeKDiUR+5kN3+Ml2j1JtqYRRXcMpgSsZ2 3UIw== 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:mime-version:message-id:date :subject:to:from:sender:dkim-signature; bh=dcRQE7c+rFOw9E2c+pwqzoxnvd9z/iqfoOiPsxzM9Y4=; fh=lA4sGOh42PZeRibqMkTnfn+UUzXUaKX7U/u50Ixavi8=; b=VjOQ9J8MUlzfcPYfLwUdhyijBhd/Zu3NfGX+G9FMTkGLt2ZVgAkHlwDLlwLlsFX/D7 Ys5/Z12kM3MdHNfJMH7GPNHby1GxttNdAgyaTWa8dfJoNp0gZOgWmaHxMLrMfc/ZRmqJ o0f+kzN+lF/mcHujOPiLI7VvHP0NEoCfAsO4WKGOnQZdwBa0DEiLxupqkQEcyC/erY22 T8Bc3lh8EHWuePHcz130mXhIabjY4dGLGFkukvZp0H3FPreVeaQ3McMV0yH1FSDGg2U+ sPny4CT0TEJGUSJTFnUh+MKIt6UHQ6e0KJ2wSXM5EaWoOyq3QAPbdxhaLAXmbco02t0B BLTw==; 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=1771588424; x=1772193224; 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:mime-version:message-id:date:subject:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=dcRQE7c+rFOw9E2c+pwqzoxnvd9z/iqfoOiPsxzM9Y4=; b=rWNCisP3GR6+LPqAVoI5PmhrfAtpP1Jks/244rTL7RdN/pTrAw5PPBWa6au5GUWSr5 p95eVeJTJusMQfB6PiIxK3u5BqHWEQ37UZY86k1HKtb0YA/8+Zs+S51abjJWuKaVO9cW l6s+pvzNpraJ6UjQqfV696yGts3Fq8ROD1TP+Z1Z4rJttdgor4ejQnhXEgnXTuY8ef1v vWj3M/pBQT0kXhJ1lkVQc3ttS6EMABWNZb7q2mUuENYHxko2FeQkMHnWOiFFmxQJ1FiF +GngsLKP1RmS4rrd14udGqy5Ed5Zwzd59x2jU0In0rGqcp5hIuMMdrSIwkoH84Tp5YRh J4yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771588424; x=1772193224; 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:mime-version :message-id:date:subject:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=dcRQE7c+rFOw9E2c+pwqzoxnvd9z/iqfoOiPsxzM9Y4=; b=R+jNtEPUk1/BKBGK+G9Hud67xKgjJw8yBhByeGA8vOcVMJgj91ybcy6FyekIFQYHYz 0r0cuom4Ii5xlKyZrKymd8Dwup+tm1UP09/JkpNnj8DNYqMuNDxWXo2spbmh6KZrA7k6 ENTWKUkzW4QFSKHrzcWAXu6F15oWKUsSviwWc8kqZU5B1hb0j3ovW2xyXOXKDYirRtm5 NnIjuuvR7R33SgvWtiTR1VfxcyaA3qH51qY5V16CyngFZmLAmAaRmh6u5n+6LeBFRqCi LCv0tESRfH5gLpjlYRow4CKhNTOWM6jmLoswGL23E49i7ojoFXbd9IlFbCHdhcKp9HIp 0J4w== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUVNQSmXKoWrTDR4zy75hY5KIIsvnxI/4RdkbWbXPg3EOOnqJf8LGXtaJyOEgXdE9iO21ju@ilbers.de X-Gm-Message-State: AOJu0YyG/U4ks+fulP/zesiqeyWuGK4h38sxZxc66gvnuboONUJvOi55 Hkxy0vQ/g1OJPQ2pWcjm/w3Qt6lxstg1fPY1MyfG58Yzn4AteK3Sksmr X-Received: by 2002:a05:600c:6306:b0:480:3a71:92b2 with SMTP id 5b1f17b1804b1-4839e6680f9mr81289825e9.26.1771588423996; Fri, 20 Feb 2026 03:53:43 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="AV1CL+HDdPi6JLu0gwGQ4sN3MZILUOajYKQGJMj26IOdAFwVZg==" Received: by 2002:a05:600c:1c18:b0:483:a26d:128e with SMTP id 5b1f17b1804b1-483a26d13bels13808225e9.1.-pod-prod-01-eu; Fri, 20 Feb 2026 03:53:42 -0800 (PST) X-Received: by 2002:a05:600c:5306:b0:47e:e4ff:e2ac with SMTP id 5b1f17b1804b1-4839e66d93bmr100186535e9.33.1771588421788; Fri, 20 Feb 2026 03:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771588421; cv=none; d=google.com; s=arc-20240605; b=ajjkN+pt7/8hwp+WCvdT9pIk0WLpm8tmOXsGDHM+kMAzpFLd/uPhBZkEzATj7hhu// mP2Z9esESDfK1C32RlKrc96xwqmSxxCyYAWgZLXNbUrW29giWpP3So8OhdtNfZMaFzzn HX0FLKce6+xsiKs01TN7eyK+3X3l5l4eWOV0zwool36t6lX5VfMqjD0W1kzUkfj5aJcT HSSFayOAcrBvWU3t2kpZ9btLMG9I2s0ueXxGr97N5Qt59vUjZqfUCcLu+F78dkIw82aA 0pIXNQwz9YrZxVJ7cVnIVhgrX4tfHibGLlDVIGk7p1R5D3k7gBUt7rteJtr/Q3HYg3XP Pz3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from; bh=ZHZjaOyrZqZnqartUybBrVuKWy36X9hKDDrq63gEFyg=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=FSG8EPramzWUYu2I2U5qNPu/cCng9aUfGIy8qNey1wKb40fEhCzskk3dNaaO6KyMEy dSVB/JCbLDsMZlVTQvyQneN6UC7B+dQEaX3Y1m5QFYnDz3R8y1qV3zdtGsk3ay1eHMcA VHuqjcnSZb5qohaqTODVSPAV1ghmABZIgvgj2Xf5ukyqd9bMs+Xmkf5fTTDu2js8+sK8 2e5KI6lYsk7zKfDpb16Wn5AN7dReDGfluBoVXiBIedTftogMvscycP15oSFCzs5LnQke JYYC4eOPf5YPlCF4r8doFutWMjbYM95uqDeQDpkt+uZE4i3M3TVI7oAp5Rotia1/zGcF 9YrQ==; 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-43796ac325csi656066f8f.5.2026.02.20.03.53.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Feb 2026 03:53:41 -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 debian-zwei.m.ilbers.de ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPA id 61KBrdfx004103 for ; Fri, 20 Feb 2026 12:53:39 +0100 From: Zhihang Wei To: isar-users@googlegroups.com Subject: [PATCH] qemuarm-trixie: Workaround with missing drivers in qemuarm-trixie initrd Date: Fri, 20 Feb 2026 12:53:39 +0100 Message-Id: <20260220115339.1188052-1-wzh@ilbers.de> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 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 Content-Type: text/plain; charset="UTF-8" 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: ILEr+S1PEOUe 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 initrd. "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 initrd. 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, introduce INITRAMFS_EXTRA_DRIVERS and use it to append the neccessary drivers that are currently missed from the initrd. 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 --- meta-isar/conf/multiconfig/qemuarm-trixie.conf | 2 ++ meta/classes-recipe/rootfs.bbclass | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/meta-isar/conf/multiconfig/qemuarm-trixie.conf b/meta-isar/conf/multiconfig/qemuarm-trixie.conf index 5600ab23..dcf0b839 100644 --- a/meta-isar/conf/multiconfig/qemuarm-trixie.conf +++ b/meta-isar/conf/multiconfig/qemuarm-trixie.conf @@ -5,3 +5,5 @@ MACHINE ?= "qemuarm" DISTRO ?= "debian-trixie" + +INITRAMFS_EXTRA_DRIVERS += "virtio_blk" diff --git a/meta/classes-recipe/rootfs.bbclass b/meta/classes-recipe/rootfs.bbclass index 8485b32f..65843f61 100644 --- a/meta/classes-recipe/rootfs.bbclass +++ b/meta/classes-recipe/rootfs.bbclass @@ -12,12 +12,19 @@ ROOTFS_DISTRO ?= "${DISTRO}" # the default initramfs generator and it is not # possible to derive the value in another way ROOTFS_USE_DRACUT ??= "" +INITRAMFS_EXTRA_DRIVERS ?= "" def initramfs_generator_cmdline(d): rootfs_packages = d.getVar('ROOTFS_PACKAGES') or '' + extra_drivers = d.getVar('INITRAMFS_EXTRA_DRIVERS') or '' if 'dracut' in rootfs_packages or bb.utils.to_boolean(d.getVar('ROOTFS_USE_DRACUT')): return "dracut --force --kver \"$kernel_version\"" - return "update-initramfs -u -v -k \"$kernel_version\"" + cmds = [] + if extra_drivers: + for drv in extra_drivers.split(): + cmds.append(f'echo {drv} | tee -a /etc/initramfs-tools/modules') + cmds.append('update-initramfs -u -v -k "$kernel_version"') + return " && ".join(cmds) ROOTFS_PACKAGES ?= "" ROOTFS_VARDEPS ?= "" -- 2.39.5 -- 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/20260220115339.1188052-1-wzh%40ilbers.de.