diff --git a/osbuild/util/runners.py b/osbuild/util/runners.py index ec2a3fec..99f5de91 100644 --- a/osbuild/util/runners.py +++ b/osbuild/util/runners.py @@ -62,10 +62,6 @@ def tmpfiles(): subprocess.run(["systemd-tmpfiles", "--create"], check=False) -def remove_tmpfiles(): - subprocess.run(["systemd-tmpfiles", "--clean", "--remove"], check=False) - - def nsswitch(): # the default behavior is fine, but using nss-resolve does not # necessarily work in a non-booted container, so make sure that @@ -94,8 +90,7 @@ def sequoia(): # images). os.makedirs("/etc/crypto-policies", exist_ok=True) shutil.copytree( - "/usr/share/crypto-policies/back-ends/DEFAULT", - "/etc/crypto-policies/back-ends" + "/usr/share/crypto-policies/back-ends/DEFAULT", "/etc/crypto-policies/back-ends" ) diff --git a/runners/org.osbuild.centos9 b/runners/org.osbuild.centos9 index b9a6c397..3e0f60f0 100755 --- a/runners/org.osbuild.centos9 +++ b/runners/org.osbuild.centos9 @@ -14,6 +14,5 @@ if __name__ == "__main__": runners.tmpfiles() runners.nsswitch() r = subprocess.run(sys.argv[1:], check=False) - runners.remove_tmpfiles() sys.exit(r.returncode) diff --git a/runners/org.osbuild.fedora30 b/runners/org.osbuild.fedora30 index b9a6c397..3e0f60f0 100755 --- a/runners/org.osbuild.fedora30 +++ b/runners/org.osbuild.fedora30 @@ -14,6 +14,5 @@ if __name__ == "__main__": runners.tmpfiles() runners.nsswitch() r = subprocess.run(sys.argv[1:], check=False) - runners.remove_tmpfiles() sys.exit(r.returncode) diff --git a/runners/org.osbuild.fedora38 b/runners/org.osbuild.fedora38 index 45a7c245..2d0b8198 100755 --- a/runners/org.osbuild.fedora38 +++ b/runners/org.osbuild.fedora38 @@ -15,6 +15,5 @@ if __name__ == "__main__": runners.nsswitch() runners.sequoia() r = subprocess.run(sys.argv[1:], check=False) - runners.remove_tmpfiles() sys.exit(r.returncode) diff --git a/runners/org.osbuild.rhel81 b/runners/org.osbuild.rhel81 index 9a911dea..db7fe78c 100755 --- a/runners/org.osbuild.rhel81 +++ b/runners/org.osbuild.rhel81 @@ -41,6 +41,5 @@ if __name__ == "__main__": os_release() runners.python_alternatives() r = subprocess.run(sys.argv[1:], check=False) - runners.remove_tmpfiles() sys.exit(r.returncode) diff --git a/runners/org.osbuild.rhel82 b/runners/org.osbuild.rhel82 index 1c14e9da..101c5771 100755 --- a/runners/org.osbuild.rhel82 +++ b/runners/org.osbuild.rhel82 @@ -16,6 +16,5 @@ if __name__ == "__main__": runners.python_alternatives() env = runners.quirks() r = subprocess.run(sys.argv[1:], env=env, check=False) - runners.remove_tmpfiles() sys.exit(r.returncode)