Stop NetworkManager to prevent /var mounting
@@ -51,6 +51,10 @@ class UnmountOldrootState(OSEncryptionState):
self.context.logger.log("Entering unmount_oldroot state")
+ self.command_executor.ExecuteInBash('systemctl stop NetworkManager', True)
+ self.command_executor.ExecuteInBash('systemctl stop rsyslog', True)
+ self.command_executor.ExecuteInBash('systemctl restart systemd-udevd', True)
+
self.command_executor.ExecuteInBash('mkdir -p /var/empty/sshd', True)
self.command_executor.ExecuteInBash('systemctl restart sshd.service')
self.command_executor.ExecuteInBash('dhclient')
