Re: [PATCH v2 04/10] um: change machine name for uname output
Johannes Berg <[email protected]> Fri, 24 Jul 2026 09:18:20 +0200
| Newsgroups | gmane.linux.uml.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2026-07-24 at 16:16 +0900, Hajime Tazaki wrote: > >=20 > > Sure, we can drop it. Or arrange so only nommu is different? Or even > > call it SUBARCH-nommu? >=20 > systemd detects UML via systemd-detect-virt, not `uname -m`: >=20 > https://github.com/obbardc/systemd/blob/master/src/basic/virt.c#L298 OK, I never checked :) > it looks like it uses vendor_id field of /proc/cpuinfo. > I guess they are right. >=20 > my original intention for this patch (to uname output) is to avoid > confusion (of myself) which UML (MMU or NOMMU) I am running so, it's > purely a kind of debugging purpose. Sure. I guess you can also always compile an EXTRAVERSION into it/both if you want. > I think we can drop it and come back later if we really need to > provide a way to detect nommu UML (probably extending show_cpuinfo()). OK, thanks for looking. johannes