int r;
size_t l;
- if (detect_virtualization(NULL) > 0)
+ if (detect_container(NULL) > 0)
return 0;
if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {
zero(variables);
- if (detect_virtualization(NULL) <= 0)
+ if (detect_container(NULL) <= 0)
if ((r = parse_env_file("/proc/cmdline", WHITESPACE,
#ifdef TARGET_FEDORA
"LANG", &variables[VARIABLE_LANG],
int r;
size_t l;
- if (detect_virtualization(NULL) > 0)
+ if (detect_container(NULL) > 0)
return 0;
if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {
utf8 = is_locale_utf8();
- if (detect_virtualization(NULL) <= 0)
+ if (detect_container(NULL) <= 0)
if ((r = parse_env_file("/proc/cmdline", WHITESPACE,
#ifdef TARGET_FEDORA
"SYSFONT", &vc_font,