Fix if condition for unmount
@@ -140,6 +140,9 @@ class UnmountOldrootState(OSEncryptionState):
if self.command_executor.Execute('mountpoint /oldroot', False):
+ self.should_exit()
+ return
+
self.command_executor.Execute('umount /oldroot', True)
sleep(3)
