Nvidia driver 550 install flag | auto pull selftest #2

Merged
clore merged 5 commits from xfs into main 2024-12-11 00:24:01 +00:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit e1a4dc7aa6 - Show all commits

View File

@ -34,6 +34,10 @@ elif config.service:
xfs_state = xfs.init()
if os.path.isfile("/opt/clore-hosting/.run_hive_driver_update"):
utils.run_command("PATH=/hive/bin:/hive/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:./ nvidia-driver-update http://45.12.132.34/NVIDIA-Linux-x86_64-550.135.run --force")
utils.run_command("systemctl restart docker")
os.remove("/opt/clore-hosting/.run_hive_driver_update")
if os.path.isfile(config.restart_docker_flag_file):
utils.run_command("systemctl restart docker")
os.remove(config.restart_docker_flag_file)

View File

@ -44,6 +44,10 @@ async def run_update(is_hive = False):
if is_hive:
background_job.temporarly_disable(14400)
driver_update_code, driver_update_stdout, driver_update_stderr = await utils.async_run_command("nvidia-driver-update http://45.12.132.34/NVIDIA-Linux-x86_64-550.135.run --force", 14400, non_interactive_env_hive)
if driver_update_code == 1 and "Unload modules failed (nvidia)" in driver_update_stdout:
async with aiofiles.open("/opt/clore-hosting/.run_hive_driver_update", mode='w') as file:
await file.write("")
os._exit(0)
background_job.enable()
if driver_update_code == 0:
async with aiofiles.open(config.restart_docker_flag_file, mode='w') as file: