-
Notifications
You must be signed in to change notification settings - Fork 1
kt vm: Pin Rocky repos to vault to prevent minor version drift #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mainline
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,8 +15,14 @@ ssh_pwauth: true | |
| package_upgrade: False | ||
|
|
||
| mounts: | ||
| - ["mount_tag_mock_scratch", "SHARED_DIR_PLACEHOLDER", "virtiofs", "rw,relatime,context=unconfined_u:object_r:mock_var_lib_t:s0"] | ||
| - ["SHARED_DIR_PLACEHOLDER", "/var/lib/mock", "bind", "defaults,bind"] | ||
| - - mount_tag_mock_scratch | ||
| - SHARED_DIR_PLACEHOLDER | ||
| - virtiofs | ||
| - rw,relatime,context=unconfined_u:object_r:mock_var_lib_t:s0 | ||
| - - SHARED_DIR_PLACEHOLDER | ||
| - /var/lib/mock | ||
| - bind | ||
| - defaults,bind | ||
|
|
||
| # Change working directory after boot | ||
| # Setting up homedir does not work without tricks, because | ||
|
|
@@ -32,4 +38,10 @@ write_files: | |
| # and then root is the owner | ||
| # workaround to change the owner to user | ||
| runcmd: | ||
| - [chown, USER_PLACEHOLDER:USER_PLACEHOLDER, HOMEDIR_PLACEHOLDER] | ||
| - - chown | ||
| - USER_PLACEHOLDER:USER_PLACEHOLDER | ||
| - HOMEDIR_PLACEHOLDER | ||
| - find /etc/yum.repos.d/ -iname "*.repo" -exec sed -i 's|^mirrorlist=|#mirrorlist=|g' {} \; | ||
| - find /etc/yum.repos.d/ -iname "*.repo" -exec sed -i 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://dl.rockylinux.org/vault/rocky|g' {} \; | ||
| - find /etc/yum.repos.d/ -iname "*.repo" -exec sed -i "s|\$releasever|$(. /etc/os-release && echo $VERSION_ID)|g" {} \; | ||
|
roxanan1996 marked this conversation as resolved.
roxanan1996 marked this conversation as resolved.
Comment on lines
+44
to
+46
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm sorry I'm just now getting to this: There is a little simpler way to do pinning. https://github.com/ctrliq/kernel-src-tree/wiki#pin-to-vault Feel free to rewrite the awk if you want.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, this looks better as it just sets env variables instead of manually rewriting them in the repo files. I do not even know why we need this in the first place, maybe I can disable it..
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm actually not sure why the cisco stuff would be there, its on my host machine ... and I couldn't tell you why exactly but none of the VM images i create has it installed for the guest vm |
||
| - dnf clean all | ||
Uh oh!
There was an error while loading. Please reload this page.