This commit is contained in:
Zsolt Ero
2024-01-02 19:18:48 +01:00
parent d72038b9da
commit 9bb2c07818
7 changed files with 130 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
import datetime
import os
import subprocess
import sys
@@ -14,6 +15,8 @@ def cli():
When finished, /mnt/ofm dir will have all the present tiles.btrfs files mounted in a read-only way.
"""
print(datetime.datetime.now(tz=datetime.timezone.utc))
if not Path('/etc/fstab').exists():
sys.exit('Needs to be run on Linux')
@@ -57,6 +60,8 @@ def cli():
clean_up_mounts()
print('DONE')
print('\n\n\n')
def clean_up_mounts():
mnt_dir = Path('/mnt/ofm')