Re: [ANNOUNCE] util-linux v2.42-rc1
Karel Zak <[email protected]> Tue, 3 Mar 2026 11:08:00 +0100
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <pj7nqvgvazvimjhx7r3j7qt7zi2hvziv3bxjwnsaxpy45zjpxc@eimfo2zs6p5t> |
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. Hi Sumanth, 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 This way all sysfs reads go through the prefix, and tests produce consistent results regardless of the host system. Karel -- Karel Zak <[email protected]> http://karelzak.blogspot.com