You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```console
$ hack/update-ubuntu-image.sh --help
update-ubuntu-image.sh: Update the Ubuntu image location in the specified templates
Usage:
update-ubuntu-image.sh [--minimal|--server] [--version <version>] <template.yaml>...
Description:
This script updates the Ubuntu image location in the specified templates.
If the image location in the template contains a release date in the URL, the script replaces it with the latest available date.
If no flags are specified, the script uses the flavor and version from the image location basename in the template.
Image location basename format: ubuntu-<version>-<flavor>-cloudimg-<arch>.img
Released Ubuntu image information is fetched from the following URLs:
Server: https://cloud-images.ubuntu.com/releases/stream/v1/com.ubuntu.cloud:released:download.json
Minimal: https://cloud-images.ubuntu.com/minimal/releases/stream/v1/com.ubuntu.cloud:released:download.json
The downloaded JSON file will be cached in the Lima cache directory.
Examples:
Update the Ubuntu image location in templates/**.yaml:
$ update-ubuntu-image.sh templates/**.yaml
Update the Ubuntu image location in ~/.lima/ubuntu/lima.yaml:
$ update-ubuntu-image.sh ~/.lima/ubuntu/lima.yaml
Update the Ubuntu image location to ubuntu-24.04-minimal-cloudimg-<arch>.img in ~/.lima/docker/lima.yaml:
$ update-ubuntu-image.sh --minimal --version 24.04 ~/.lima/docker/lima.yaml
Flags:
--server Use the server flavor image
--minimal Use the minimal flavor image
--version <version> Use the specified version
-h, --help Print this help message
```
Signed-off-by: Norio Nomura <[email protected]>
0 commit comments