[PATCH v2 04/10] um: change machine name for uname output
Johannes Berg
johannes at sipsolutions.net
Fri Jul 24 00:18:20 PDT 2026
On Fri, 2026-07-24 at 16:16 +0900, Hajime Tazaki wrote:
> >
> > Sure, we can drop it. Or arrange so only nommu is different? Or even
> > call it SUBARCH-nommu?
>
> systemd detects UML via systemd-detect-virt, not `uname -m`:
>
> 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.
>
> 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
More information about the linux-um
mailing list