diff --git a/cloudmesh/burn/Imager.py b/cloudmesh/burn/Imager.py index 7474206..71b916d 100644 --- a/cloudmesh/burn/Imager.py +++ b/cloudmesh/burn/Imager.py @@ -18,6 +18,7 @@ def installed(): return r is not None @staticmethod + @staticmethod def install(force=False): if os_is_mac(): return @@ -27,6 +28,14 @@ def install(force=False): os.system("sudo apt uninstall -y rpi-imager") else: Console.warning("Installation is not supported") + if os_is_mac(): + return + if not Imager.installed() or force: + if os_is_linux() or os_is_pi(): + Sudo.password() + os.system("sudo apt uninstall -y rpi-imager") + else: + Console.warning("Installation is not supported") @staticmethod def fetch(tag=None):