debian-forge/stages/io.weldr.remove-uniqueness
2019-06-05 17:29:08 +02:00

15 lines
331 B
Python
Executable file

#!/usr/bin/python3
import contextlib
import json
import os
import sys
def main(tree):
with contextlib.suppress(FileNotFoundError):
os.unlink(f"{tree}/etc/machine-id")
os.unlink(f"{tree}/var/lib/systemd/random-seed")
if __name__ == '__main__':
options = json.load(sys.stdin)
sys.exit(main(**options))