fake-device-wrapper should bind-mount efivars
Bug #1906320 reported by
Dimitri John Ledkov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-drivers-common (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
/usr/share/
Ie. such that /sys/firmware/
That way when testing subiquity, it should correctly observe if it was booted under secureboot, or not.
Or maybe we can create a few options to fake-devices-
To post a comment you must log in.
FTR, I would strongly advise against that, see https:/ /github. com/martinpitt/ umockdev/ issues/ 110#issuecommen t-736224503 . You want the tests to work independently on the hardware it's running on, so that you can run it on e.g. standard autopkgtest infra.
You could create /sys/firmware/ efi/efivars/ tarballs of a bunch of real systems with the properties that you want, keep them in the tests, and unpack these in your test cases. You most probably just need a few of them, so you can strip them down or possibly create them individually as files, but a full tarball might be the quickest start.