fsck /persistent before mounting

This commit is contained in:
Ian Gulliver
2016-11-19 12:39:06 -08:00
parent b582acf976
commit e45fcf2ea6

View File

@@ -28,6 +28,8 @@ def main():
os.chmod(fh.fileno(), 0o755)
fh.write("""\
#!/bin/bash
set -ex
e2fsck -a /persistent
mount -o data=journal,noatime,sync LABEL=PERSISTENT /persistent
""")