ostree/docs/manual
Colin Walters 3ab0d5e664 lib/sysroot: Support /usr/lib/modules/$kver for kernel/initramfs
This is the new Fedora kernel standard layout; it has the advantage
of being in `/usr` like `/usr/lib/ostree-boot`, but it's not OSTree
specific.

Further, I think in practice forcing tree builders to compute the checksum is an
annoying stumbling block; since we already switched to e.g. computing checksums
always when doing pulls, the cost of doing another checksum for the
kernel/initramfs is tiny. The "bootcsum" becomes more of an internal
implementation detail.

Now, there is a transition; my current thought for this is that rpm-ostree will
change to default to injecting into both `/usr/lib/ostree-boot` and
`/usr/lib/modules`, and stop doing `/boot`, then maybe next year say we drop the
`/usr/lib/ostree-boot` by default.

A twist here is that the default Fedora kernel RPM layout (and what's in
rpm-ostree today) includes a kernel but *not* an initramfs in
`/usr/lib/modules`. If we looked only there, we'd just find the kernel. So we
need to look in both, and then special case this - pick the legacy layout if we
have `/usr/lib/modules` but not an initramfs.

While here, rework the code to have an `OstreeKernelLayout` struct which makes
dealing with all of the variables nicer.

Closes: #1079
Approved by: jlebon
2017-08-18 17:34:36 +00:00
..
adapting-existing.md switchroot: Document a bit more, add demo shell implementation 2017-04-19 18:52:05 +00:00
atomic-upgrades.md Rename "osname" → "stateroot" 2017-04-24 16:09:51 +00:00
buildsystem-and-repos.md tree-wide: Replace various uses of archive-z2archive 2017-06-29 16:00:13 +00:00
deployment.md lib/sysroot: Support /usr/lib/modules/$kver for kernel/initramfs 2017-08-18 17:34:36 +00:00
formats.md tree-wide: Replace various uses of archive-z2archive 2017-06-29 16:00:13 +00:00
introduction.md Update introduction.md 2017-08-09 13:15:44 +00:00
related-projects.md docs/related-projects: Tweak client side snapshot text, add casync 2017-08-17 16:48:25 +00:00
repo.md tree-wide: Replace various uses of archive-z2archive 2017-06-29 16:00:13 +00:00
repository-management.md tree-wide: Replace various uses of archive-z2archive 2017-06-29 16:00:13 +00:00