Re: [systemd-devel] [PATCH] detect-virt: detect User-Mode Linux

2013-07-16 Thread Lennart Poettering
On Tue, 16.07.13 20:24, Ramkumar Ramachandra ([email protected]) wrote: > > Lennart Poettering wrote: > > /dev/tty0 only exists > > on kernels with a VT subsystem > > Yeah, but um Linux boots fine when I do > > $ mv > > /etc/systemd/system/getty.target.wants/{[email protected],getty@tty0

Re: [systemd-devel] [PATCH] detect-virt: detect User-Mode Linux

2013-07-16 Thread Ramkumar Ramachandra
Lennart Poettering wrote: > /dev/tty0 only exists > on kernels with a VT subsystem Yeah, but um Linux boots fine when I do $ mv /etc/systemd/system/getty.target.wants/{[email protected],[email protected]} I'm reading arch/um/drivers/tty.c, but I'm not sure I understand what exactly is going

Re: [systemd-devel] [PATCH] detect-virt: detect User-Mode Linux

2013-07-16 Thread Lennart Poettering
On Tue, 16.07.13 18:28, Ramkumar Ramachandra ([email protected]) wrote: > > 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/{[email protected],ge

Re: [systemd-devel] [PATCH] detect-virt: detect User-Mode Linux

2013-07-16 Thread Thomas Bächler
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/{[email protected],[email protected]} > > Where

Re: [systemd-devel] [PATCH] detect-virt: detect User-Mode Linux

2013-07-16 Thread 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/{[email protected],[email protected]} Where should the exception for um linux go? When does the code in

Re: [systemd-devel] [PATCH] detect-virt: detect User-Mode Linux

2013-07-15 Thread Lennart Poettering
On Mon, 15.07.13 22:33, Ramkumar Ramachandra ([email protected]) wrote: > In a User-Mode Linux session: > > $ systemd-detect-virt > none > > Although it is possible to reliably detect virtualization: > > $ cat /proc/cpuinfo > processor : 0 > vendor_id : User Mode Linux >

Re: [systemd-devel] [PATCH] detect-virt: detect User-Mode Linux

2013-07-15 Thread Lennart Poettering
On Mon, 15.07.13 19:27, Tomasz Torcz ([email protected]) wrote: > On Mon, Jul 15, 2013 at 10:33:13PM +0530, Ramkumar Ramachandra wrote: > > In a User-Mode Linux session: > > > > $ systemd-detect-virt > > none > > > > Although it is possible to reliably detect virtualization: > > > > $

Re: [systemd-devel] [PATCH] detect-virt: detect User-Mode Linux

2013-07-15 Thread Tomasz Torcz
On Mon, Jul 15, 2013 at 10:33:13PM +0530, Ramkumar Ramachandra wrote: > In a User-Mode Linux session: > > $ systemd-detect-virt > none > > Although it is possible to reliably detect virtualization: > > $ cat /proc/cpuinfo > processor : 0 > vendor_id : User Mode Linux > mo

[systemd-devel] [PATCH] detect-virt: detect User-Mode Linux

2013-07-15 Thread Ramkumar Ramachandra
In a User-Mode Linux session: $ systemd-detect-virt none Although it is possible to reliably detect virtualization: $ cat /proc/cpuinfo processor : 0 vendor_id : User Mode Linux model name : UML mode: skas host: Linux kytes 3.11.0-rc1-