Re: [ANNOUNCE] util-linux v2.42-rc1
Chris Hofstaedtler <[email protected]> Wed, 4 Mar 2026 14:34:28 +0100
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
* Karel Zak <[email protected]> [260303 11:09]: >On Mon, Mar 02, 2026 at 04:59:06PM +0100, Sumanth Korikkar wrote: >> * When --sysroot is used, do not read /sys/firmware/memory >> (used on s390). This makes sure lsmem reads only the memory >> directories inside the given sysroot, so the directory list >> is correct. > >Thanks for looking into this. I think your patch is a workaround >though. It bypasses sysmemconfig and memmap_on_memory when --sysroot >is used rather than fixing the root cause. > >The real problem is that --sysroot prefix was not applied to all sysfs >paths. The sysmemconfig handler was never prefixed, and print_summary() >used raw fopen() to read memmap_on_memory, completely ignoring --sysroot. > >I've pushed different solution fix to >https://github.com/util-linux/util-linux/pull/4090 Thanks, I've pulled this into our build and can confirm it fixes the issue on loong64. Best, Chris