As for the questions of xnox:
"""
ubuntu@autopkgtest:~$ sudo systemd-run --unit=check-env /usr/bin/env
Running as unit: check-env.service
ubuntu@autopkgtest:~$ sudo journalctl --no-pager -u check-env
-- Logs begin at Mon 2018-07-23 18:30:47 CEST, end at Sun 2019-02-03 13:25:21 CET. --
Feb 03 13:25:21 autopkgtest systemd[1]: Started /usr/bin/env.
Feb 03 13:25:21 autopkgtest env[543]: LANG=en_US.UTF-8
Feb 03 13:25:21 autopkgtest env[543]: PATH=/sbin:/usr/sbin:/bin:/usr/bin:/snap/bin
Feb 03 13:25:21 autopkgtest env[543]: INVOCATION_ID=4c9b05e577224d6284cc641778807a16
Feb 03 13:25:21 autopkgtest env[543]: JOURNAL_STREAM=9:18437
ubuntu@autopkgtest:~$ cat /etc/systemd/system.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See systemd-system.conf(5) for details.
As for the questions of xnox: autopkgtest: ~$ sudo systemd-run --unit=check-env /usr/bin/env autopkgtest: ~$ sudo journalctl --no-pager -u check-env /usr/sbin: /bin:/usr/ bin:/snap/ bin ID=4c9b05e57722 4d6284cc6417788 07a16 STREAM= 9:18437 autopkgtest: ~$ cat /etc/systemd/ system. conf system. conf(5) for details.
"""
ubuntu@
Running as unit: check-env.service
ubuntu@
-- Logs begin at Mon 2018-07-23 18:30:47 CEST, end at Sun 2019-02-03 13:25:21 CET. --
Feb 03 13:25:21 autopkgtest systemd[1]: Started /usr/bin/env.
Feb 03 13:25:21 autopkgtest env[543]: LANG=en_US.UTF-8
Feb 03 13:25:21 autopkgtest env[543]: PATH=/sbin:
Feb 03 13:25:21 autopkgtest env[543]: INVOCATION_
Feb 03 13:25:21 autopkgtest env[543]: JOURNAL_
ubuntu@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See systemd-
[Manager] journal- or-kmsg tAction= reboot- force s=cpu,cpuacct net_cls,net_prio gSec=0 ogSec=10min dingSet= itectures= curacySec= 1min dOutput= journal dError= inherit StartSec= 90s StopSec= 90s Sec=100ms mitIntervalSec= 10s mitBurst= 5 ment= unting= no nting=no nting=no Accounting= no ccounting= no counting= yes FILE= MLOCK= GPENDING= GQUEUE= PRIO= TIME= autopkgtest: ~$ cat /proc/cmdline /boot/vmlinuz- 4.15.0- 45-generic root=UUID= 991dab44- ecab-46c0- be75-150dbea660 be ro console=ttyS0 autopkgtest: ~$ journalctl -b -k | grep -e initrd -e command /boot/vmlinuz- 4.15.0- 45-generic root=UUID= 991dab44- ecab-46c0- be75-150dbea660 be ro console=ttyS0 autopkgtest: ~$ ls /usr/lib/ systemd/ system- environment- generators/
#LogLevel=info
#LogTarget=
#LogColor=yes
#LogLocation=no
#DumpCore=yes
#ShowStatus=yes
#CrashChangeVT=no
#CrashShell=no
#CrashReboot=no
#CtrlAltDelBurs
#CPUAffinity=1 2
#JoinController
#RuntimeWatchdo
#ShutdownWatchd
#CapabilityBoun
#SystemCallArch
#TimerSlackNSec=
#DefaultTimerAc
#DefaultStandar
#DefaultStandar
#DefaultTimeout
#DefaultTimeout
#DefaultRestart
#DefaultStartLi
#DefaultStartLi
#DefaultEnviron
#DefaultCPUAcco
#DefaultIOAccou
#DefaultIPAccou
#DefaultBlockIO
#DefaultMemoryA
#DefaultTasksAc
#DefaultTasksMax=
#DefaultLimitCPU=
#DefaultLimitFSIZE=
#DefaultLimitDATA=
#DefaultLimitSTACK=
#DefaultLimitCORE=
#DefaultLimitRSS=
#DefaultLimitNO
#DefaultLimitAS=
#DefaultLimitNPROC=
#DefaultLimitME
#DefaultLimitLOCKS=
#DefaultLimitSI
#DefaultLimitMS
#DefaultLimitNICE=
#DefaultLimitRT
#DefaultLimitRT
#IPAddressAllow=
#IPAddressDeny=
ubuntu@
BOOT_IMAGE=
ubuntu@
Feb 03 13:23:52 autopkgtest kernel: Kernel command line: BOOT_IMAGE=
Feb 03 13:23:52 autopkgtest kernel: Freeing initrd memory: 50848K
ubuntu@
snapd-env-generator
"""