diff --git a/pmb/__init__.py b/pmb/__init__.py index 4c1fa80a..f08b8826 100644 --- a/pmb/__init__.py +++ b/pmb/__init__.py @@ -23,6 +23,9 @@ def main(): args = parse.arguments() os.umask(0o22) + # Store script invocation command + os.environ["PMBOOTSTRAP_CMD"] = sys.argv[0] + # Sanity checks other.check_grsec() if not args.as_root and os.geteuid() == 0: