forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
many: build drivers tree on install (canonical#13923)
Build drivers tree on installation so kernel modules can be found on first boot after installation (otherwise the modules would be available too late, after initial installation of the kernel has happened while seeding). Also, make sure that the tree is not re-created when seeding, and add a spread test for kernel-modules components. * dirs: add function to get root of drivers trees * kernel: do not recreate drivers tree if it already exists On installation, a drivers tree has already been copied to the data partition. Do not re-create if found when seeding happens (note though that on preseeding we will not find the tree and we will still create it). * gadget/install: create device tree on installations Create a device tree on installation so we have it on first boot. * o/snapstate: fix task message * tests/nested/manual: add kernel-modules-components test This test installs a kernel-modules component and verifies that the shipped kernel module is installed and can be loaded. * tests/lib: do not error out if cloud-init finished with 'recoverable error' status. * kernel: have destination as argument when building drivers tree We need to tackle the generic installation case as opposed to creating the drivers tree when seeding the system. In that case the destination tree can vary depending on installation type. * overlord: pass kernel information to install package so the drivers tree can be created. * cmd/snap-bootstrap: build drivers tree on installation from initramfs * tests: adapt to additional parameters in install.Run * snap/naming: add ancillary method to split a full component name into snap and component names. * gadget/install: fix nosecboot tests
- Loading branch information
1 parent
a279396
commit b052830
Showing
27 changed files
with
542 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.