-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And this (for now at least) completes the epic journey of the "where's the kernel"? With this it's found solely in `/usr/lib/modules/$kver`. There are a few reasons to do this; most prominent is that it avoids duplicating the content as the locations may have different SELinux labels. Closes: #1773 Approved by: jlebon
- Loading branch information
1 parent
f37426f
commit adff1e9
Showing
4 changed files
with
49 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -xeuo pipefail | ||
|
||
dn=$(cd $(dirname $0) && pwd) | ||
. ${dn}/libcomposetest.sh | ||
|
||
prepare_compose_test "bootlocation-modules" | ||
pysetjsonmember "boot_location" '"modules"' | ||
runcompose | ||
echo "ok compose" | ||
|
||
# Nothing in /boot (but it should exist) | ||
ostree --repo=${repobuild} ls -R ${treeref} /boot > bootls.txt | ||
cat >bootls-expected.txt <<EOF | ||
d00755 0 0 0 /boot | ||
EOF | ||
diff -u bootls{-expected,}.txt | ||
# Verify /usr/lib/ostree-boot | ||
ostree --repo=${repobuild} ls -R ${treeref} /usr/lib/ostree-boot > bootls.txt | ||
assert_not_file_has_content bootls.txt vmlinuz- | ||
assert_not_file_has_content bootls.txt initramfs- | ||
# And use the kver to find the kernel in /usr/lib/modules | ||
ostree --repo=${repobuild} ls -R ${treeref} /usr/lib/modules > modules-lsr.txt | ||
assert_file_has_content modules-lsr.txt '/vmlinuz$' | ||
assert_file_has_content modules-lsr.txt '/initramfs.img$' | ||
echo "ok boot location modules" |