16 lines
344 B
Python
Executable file
16 lines
344 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__':
|
|
args = json.load(sys.stdin)
|
|
r = main(args["options"])
|
|
sys.exit(r)
|