Skip to content

Commit

Permalink
buildextend-metal: fix reference to wrong OSTree repo
Browse files Browse the repository at this point in the history
We need to use `${ostree_repo}` there, which could either point to
`${tmprepo}` or another temporary repo if targeting an older build.
  • Loading branch information
jlebon committed Mar 11, 2020
1 parent c7bb577 commit 27e7783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd-buildextend-metal
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ disk_args=()

set -x
# Extract the target kernel config, which may inform how we build disks.
target_moduledir=$(ostree --repo="${tmprepo}" ls "${commit}" /usr/lib/modules | grep -o '/usr/lib/modules/.*')
ostree --repo="${tmprepo}" cat "${commit}" "${target_moduledir}/config" > tmp/target-kernel.config
target_moduledir=$(ostree --repo="${ostree_repo}" ls "${commit}" /usr/lib/modules | grep -o '/usr/lib/modules/.*')
ostree --repo="${ostree_repo}" cat "${commit}" "${target_moduledir}/config" > tmp/target-kernel.config
# Part of: https://github.com/ostreedev/ostree/pull/1959
# We need to support kernels that don't have this enabled yet, including RHEL8
# and current Fedora 31.
Expand Down

0 comments on commit 27e7783

Please sign in to comment.