[systemd-devel] [PATCH] detect-virt: detect User-Mode Linux
Thomas Bächler
thomas at archlinux.org
Tue Jul 16 06:14:39 PDT 2013
Am 16.07.2013 14:58, schrieb Ramkumar Ramachandra:
> Ramkumar Ramachandra wrote:
>> It seems that UM does not have a proper tty system; I force
>> systemd to use the /dev/console by doing:
>>
>> $ mv /etc/systemd/system/getty.target.wants/{getty at tty1.service,getty at console.service}
>
> Where should the exception for um linux go? When does the code in
> getty-generator get executed exactly (installation?).
The getty at tty1.service is symlinked during package installation only.
Since UM doesn't have a working tty1, that service remains unused and
could be disabled on UM.
This is not generated from getty-generator.
> The same rootfs
> can be used in a chroot, or with a vm, so I think the override should
> be done at runtime. There's already an exception for containers: when
> detect_container(), install console-getty.service. Should we add one
> for detect_virtualization() when id = "uml"?
IMO that's a good idea since UML behaves more like a container than a VM
in this context. This would probably make UML work out of the box.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130716/f8cb0ea1/attachment.pgp>
More information about the systemd-devel
mailing list