Files
systemd/src/shared
Ramkumar Ramachandra 7080ea16b5 detect-virt: detect User-Mode Linux
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-00009-ge5fd680 (...)
  bogomips        : 7007.43

So, grep for the string "\nvendor_id\t: User Mode Linux\n" in
/proc/cpuinfo, and say "uml" when asked.
2013-07-16 14:27:53 +02:00
..
2013-06-27 04:17:34 +02:00
2013-06-27 04:17:34 +02:00
2013-04-04 22:46:19 -04:00
2013-03-10 22:48:27 +01:00
2013-06-27 04:17:34 +02:00
2013-06-27 01:38:47 -04:00
2013-04-17 00:09:16 -04:00
2013-07-11 03:09:18 +02:00
2013-06-27 04:17:34 +02:00
2013-06-27 04:17:34 +02:00
2013-05-02 22:55:38 -04:00
2013-02-13 08:45:13 -05:00
2013-05-16 21:58:34 +02:00
2012-11-12 19:47:43 +01:00
2013-03-25 02:33:35 +01:00
2013-05-02 22:55:38 -04:00
2013-06-09 13:49:38 -04:00
2013-06-09 13:49:38 -04:00
2013-07-16 14:27:53 +02:00