initialization-actions icon indicating copy to clipboard operation
initialization-actions copied to clipboard

[gpu] merge install_gpu_driver.sh from custom-images

Open cjac opened this issue 1 year ago • 6 comments

* add is_debuntu to simplify common is_debian || is_ubuntu use case
* prepend clean to execute_with_retries to reduce maximum image size
* downloading assets to ram disk to reduce maximum image size
* added sync to key points of the script to allow accurate measurement
  of maximum disk usage
* moved initialization steps to new function prepare_to_install
* created exit_handler function which gets executed before script exits
* reduce log noise
* enable dkms certificate use anywhere in main function
* this version tested to work with secure boot enabled on all but debian10 and debian11 variants when launched with an image customized with [build-current-images.sh](https://github.com/cjac/custom-images/blob/test-dask-rapids-20241021/examples/secure-boot/build-current-images.sh)

cjac avatar Oct 28 '24 18:10 cjac

/gcbrun

cjac avatar Oct 28 '24 18:10 cjac

that machine type is way too small. n1-standard-8 is the correct size for this installer.

cjac avatar Oct 28 '24 22:10 cjac

/gcbrun

cjac avatar Oct 28 '24 22:10 cjac

Everything in the last one worked except for rocky9. for some reason, the installation of screen is causing the internet to break. I've added a retry for failed dnf install commands. I've also increased the timeout from 30m to 90m to make sure rocky9 has enough time to do the installation.

cjac avatar Oct 29 '24 00:10 cjac

/gcbrun

cjac avatar Oct 29 '24 00:10 cjac

/gcbrun

cjac avatar Oct 29 '24 15:10 cjac