fsck /persistent before mounting
This commit is contained in:
@@ -28,6 +28,8 @@ def main():
|
|||||||
os.chmod(fh.fileno(), 0o755)
|
os.chmod(fh.fileno(), 0o755)
|
||||||
fh.write("""\
|
fh.write("""\
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -ex
|
||||||
|
e2fsck -a /persistent
|
||||||
mount -o data=journal,noatime,sync LABEL=PERSISTENT /persistent
|
mount -o data=journal,noatime,sync LABEL=PERSISTENT /persistent
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user