Do not wipe partition signature if the partition is not going to be formatted

This commit is contained in:
Fierelier 2023-01-28 02:21:56 +01:00
parent ac8a9404f9
commit 0f6e3a4fc6

View File

@ -203,8 +203,9 @@ def main():
time.sleep(5)
print("")
print("> Wiping partition signature ...")
call(["wipefs","-a",installPartition])
if formatPartition != None:
print("> Wiping partition signature ...")
call(["wipefs","-a",installPartition])
if encrypt:
print("> Encrypting partition ...")