-
-
Notifications
You must be signed in to change notification settings - Fork 170
Automatically use the default location of the OVMF files on Windows #469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
nicholasbishop
added a commit
to nicholasbishop/uefi-rs
that referenced
this issue
Jul 30, 2022
Prior to this commit we assumed that OVMF files for a given guest arch have consistent file names across host operating systems, varying only in the directory path. This turns out not to be a good assumption though; the locations and names of OVMF files installed by system packages very a lot between operating systems. To make it easier to figure out where stuff is, add a number of OS-specific functions that provide the fulls OVMF code and vars paths. For now these functions cover Arch, CentOS, Debian/Ubuntu, Fedora, and Windows. A selection of candidate paths is then collected (one set of paths for Linux, a different set for Windows) and searched. Along with the above changes, the `--ovmf-dir` option has been replaced with separate `--ovmf-code` and `--ovmf-vars` options. When set, these paths will be used instead of searching the candidate paths. The `uefi-test-runner` directory is no longer automatically searched for OVMF files since we no longer assume we know what these files would be named. Hopefully the improved candidate search makes this moot, and the `--ovmf-code`/`--ovmf-vars` options can still be used to search there if desired. Fixes rust-osdev#469
nicholasbishop
added a commit
to nicholasbishop/uefi-rs
that referenced
this issue
Jul 30, 2022
Prior to this commit we assumed that OVMF files for a given guest arch have consistent file names across host operating systems, varying only in the directory path. This turns out not to be a good assumption though; the locations and names of OVMF files installed by system packages very a lot between operating systems. To make it easier to figure out where stuff is, add a number of OS-specific functions that provide the fulls OVMF code and vars paths. For now these functions cover Arch, CentOS, Debian/Ubuntu, Fedora, and Windows. A selection of candidate paths is then collected (one set of paths for Linux, a different set for Windows) and searched. Along with the above changes, the `--ovmf-dir` option has been replaced with separate `--ovmf-code` and `--ovmf-vars` options. When set, these paths will be used instead of searching the candidate paths. The `uefi-test-runner` directory is no longer automatically searched for OVMF files since we no longer assume we know what these files would be named. Hopefully the improved candidate search makes this moot, and the `--ovmf-code`/`--ovmf-vars` options can still be used to search there if desired. Fixes rust-osdev#469
nicholasbishop
added a commit
to nicholasbishop/uefi-rs
that referenced
this issue
Jul 30, 2022
Prior to this commit we assumed that OVMF files for a given guest arch have consistent file names across host operating systems, varying only in the directory path. This turns out not to be a good assumption though; the locations and names of OVMF files installed by system packages very a lot between operating systems. To make it easier to figure out where stuff is, add a number of OS-specific functions that provide the fulls OVMF code and vars paths. For now these functions cover Arch, CentOS, Debian/Ubuntu, Fedora, and Windows. A selection of candidate paths is then collected (one set of paths for Linux, a different set for Windows) and searched. Along with the above changes, the `--ovmf-dir` option has been replaced with separate `--ovmf-code` and `--ovmf-vars` options. When set, these paths will be used instead of searching the candidate paths. The `uefi-test-runner` directory is no longer automatically searched for OVMF files since we no longer assume we know what these files would be named. Hopefully the improved candidate search makes this moot, and the `--ovmf-code`/`--ovmf-vars` options can still be used to search there if desired. Fixes rust-osdev#469
Merged
nicholasbishop
added a commit
to nicholasbishop/uefi-rs
that referenced
this issue
Jul 30, 2022
Prior to this commit we assumed that OVMF files for a given guest arch have consistent file names across host operating systems, varying only in the directory path. This turns out not to be a good assumption though; the locations and names of OVMF files installed by system packages very a lot between operating systems. To make it easier to figure out where stuff is, add a number of OS-specific functions that provide the fulls OVMF code and vars paths. For now these functions cover Arch, CentOS, Debian/Ubuntu, Fedora, and Windows. A selection of candidate paths is then collected (one set of paths for Linux, a different set for Windows) and searched. Along with the above changes, the `--ovmf-dir` option has been replaced with separate `--ovmf-code` and `--ovmf-vars` options. When set, these paths will be used instead of searching the candidate paths. The `uefi-test-runner` directory is no longer automatically searched for OVMF files since we no longer assume we know what these files would be named. Hopefully the improved candidate search makes this moot, and the `--ovmf-code`/`--ovmf-vars` options can still be used to search there if desired. CI changes: * The aarch64 job has been simplified a bit since the system location of the files is now sufficient for `cargo xtask run` to work. * The ia32 job now explicitly sets the location of the downloaded OVMF files. Fixes rust-osdev#469
nicholasbishop
added a commit
to nicholasbishop/uefi-rs
that referenced
this issue
Aug 3, 2022
Prior to this commit we assumed that OVMF files for a given guest arch have consistent file names across host operating systems, varying only in the directory path. This turns out not to be a good assumption though; the locations and names of OVMF files installed by system packages very a lot between operating systems. To make it easier to figure out where stuff is, add a number of OS-specific functions that provide the fulls OVMF code and vars paths. For now these functions cover Arch, CentOS, Debian/Ubuntu, Fedora, and Windows. A selection of candidate paths is then collected (one set of paths for Linux, a different set for Windows) and searched. Along with the above changes, the `--ovmf-dir` option has been replaced with separate `--ovmf-code` and `--ovmf-vars` options. When set, these paths will be used instead of searching the candidate paths. The `uefi-test-runner` directory is no longer automatically searched for OVMF files since we no longer assume we know what these files would be named. Hopefully the improved candidate search makes this moot, and the `--ovmf-code`/`--ovmf-vars` options can still be used to search there if desired. CI changes: * The aarch64 job has been simplified a bit since the system location of the files is now sufficient for `cargo xtask run` to work. * The ia32 job now explicitly sets the location of the downloaded OVMF files. Fixes rust-osdev#469
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From #463 (comment):
Following the changes in #463, we can update the
OvmfPaths
code inxtask/src/qemu.rs
to find these files automatically.The text was updated successfully, but these errors were encountered: