diff options
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | src/main.c | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -82,6 +82,8 @@ * make sure swap.target doesn't pull in partitions multiple times +* make description of .swap files nicer: resolve /dev/by-uuid/ symlink + External: * patch kernel to add /proc/swaps change notifications diff --git a/src/main.c b/src/main.c index 9a51a9187f..50325e1285 100644 --- a/src/main.c +++ b/src/main.c @@ -975,8 +975,10 @@ int main(int argc, char *argv[]) { /* Unset some environment variables passed in from the kernel * that don't really make sense for us. */ - unsetenv("HOME"); - unsetenv("TERM"); + if (arg_running_as == MANAGER_SYSTEM) { + unsetenv("HOME"); + unsetenv("TERM"); + } /* Move out of the way, so that we won't block unmounts */ assert_se(chdir("/") == 0); |