Skip to content
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

ubuntu-drivers debug wrapper #2026

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Commits on Jul 17, 2024

  1. snapcraft.yaml: add *_ORIG vars for server

    Adds the *_ORIG variables to the subiquity-server environment
    so orig_environment will correctly replace mocked variables (e.g.,
    $PATH).
    Chris-Peterson444 committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    21b7bf2 View commit details
    Browse the repository at this point in the history
  2. introduce system_scripts and umockdev-wrapper

    Introduces a special set of binaries we will use to be run in the
    system environment. This commit introduces subiquity-umockdev-wrapper,
    which can be used to wrap ubuntu-drivers calls to fake hardware.
    Chris-Peterson444 committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    2a37b78 View commit details
    Browse the repository at this point in the history
  3. utils: env utility for system_scripts

    Utility to generate an environment for running programs outside of the
    snap with the addition of the programs vendored in system_scripts.
    Chris-Peterson444 committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    611e0ae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c005f15 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. drivers: wrap ubuntu-drivers with umockdev-wrapper

    Introduces a new UbuntuDriversInterface class that will wrap
    all "ubuntu-drivers" calls with the subiquity-umockdev-wrapper
    script.
    
    install_drivers no-op until further work to copy system_scripts to
    target is done.
    Chris-Peterson444 committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    9036c96 View commit details
    Browse the repository at this point in the history
  2. kvm-test: add options for fake-pci-devices

    Add option to pass "subiquity-fake-pci-devices" on the kernel
    command line.
    Chris-Peterson444 committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    4b6f732 View commit details
    Browse the repository at this point in the history
  3. drivers: debug option to disable --gpgpu

    For server installs, we specifically pass "--gpgpu" to ubuntu-drivers
    calls, but this stops broadcom-sta-dkms drivers from being
    a candidate to install. It's faster to test on server, so we can
    enable this flag to test installs of braodcom-sta-dkms on server
    (which normally shouldn't happen).
    Chris-Peterson444 committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    7c5d010 View commit details
    Browse the repository at this point in the history
  4. kvm-test: add options for server-force-no-gpgpu

    Add option to pass "subiquity-server-force-no-gpgpu" on the kernel
    command line.
    Chris-Peterson444 committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    db8bd8e View commit details
    Browse the repository at this point in the history
  5. drivers: ubuntu-drivers mock on install too

    Wrap the ubuntu-drivers command on subiquity-umockdev-wrapper during
    install too. Works by copying the wrapper script to /target/usr/bin
    so it will be found within $PATH by default.
    Chris-Peterson444 committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    6af4933 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3cfb8a5 View commit details
    Browse the repository at this point in the history