Skip to content

Commit

Permalink
Merge pull request #403 from enrey/restart_fix
Browse files Browse the repository at this point in the history
Fixed docker container stop/start blank background error
  • Loading branch information
budtmo committed May 3, 2024
2 parents 4086413 + 363fc77 commit fbd31b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/device/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ def create(self) -> None:
self.logger.info(f"{self.device_type} is created!")

def change_permission(self) -> None:
not_first_run = self.is_initialized()
if not_first_run:
return

kvm_path = "/dev/kvm"
if os.path.exists(kvm_path):
cmds = (f"sudo chown 1300:1301 {kvm_path}",
Expand Down

0 comments on commit fbd31b9

Please sign in to comment.