From: Yu Watanabe Date: Sat, 31 Jan 2026 17:37:07 +0000 (+0900) Subject: mkosi: workaround issue in mdadm-4.5 + linux-6.18 X-Git-Tag: v257.11~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8dd549d717d2b108f267ccb08e99666227289e96;p=thirdparty%2Fsystemd.git mkosi: workaround issue in mdadm-4.5 + linux-6.18 After debian updated the kernel from 6.17 to 6.18, mdadm command fails with the following: ``` + mdadm --create /dev/md/mdmirror ... mdadm: size set to 64512K mdadm: Can't open /sys/module/md_mod/parameters/legacy_async_del_gendisk mdadm: init md module parameters fail ``` This seems a bug in mdadm, and fix is already merged in the upstream: https://github.com/md-raid-utilities/mdadm/pull/228 Until the fix is backported, let's workaround the issue. See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1125390 (cherry picked from commit 4c6afaab193fcdcb1f5adfe29cd9e0d27e67c55c) (cherry picked from commit 8dc4dbca29d4c271b47478f616216d3812bbf9b7) (cherry picked from commit 8466ef81529b1ca01b045dc000b3c92dfbfe1ca9) --- diff --git a/mkosi/mkosi.extra/usr/lib/modules-load.d/mdadm-workaround.conf b/mkosi/mkosi.extra/usr/lib/modules-load.d/mdadm-workaround.conf new file mode 100644 index 00000000000..320f9436d37 --- /dev/null +++ b/mkosi/mkosi.extra/usr/lib/modules-load.d/mdadm-workaround.conf @@ -0,0 +1,10 @@ +# This is a workaround for the issue observed with mdadm-4.5 + linux-6.18. +# === +# + mdadm --create /dev/md/mdmirror ... +# mdadm: size set to 64512K +# mdadm: Can't open /sys/module/md_mod/parameters/legacy_async_del_gendisk +# mdadm: init md module parameters fail +# === +# See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1125390 +# Fixed by https://github.com/md-raid-utilities/mdadm/pull/228 +md_mod