diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c index 1b1741a645..fb34e4d3d1 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1475,8 +1475,11 @@ int main(int argc, char *argv[]) { if (in_initrd()) log_info("Running in initial RAM disk."); - } else - log_debug(PACKAGE_STRING " running in user mode. (" SYSTEMD_FEATURES ")"); + } else { + _cleanup_free_ char *t = uid_to_name(getuid()); + log_debug(PACKAGE_STRING " running in user mode for user "PID_FMT"/%s. (" SYSTEMD_FEATURES ")", + getuid(), t); + } if (arg_running_as == SYSTEMD_SYSTEM && !skip_setup) { if (arg_show_status || plymouth_running()) |