Jiri Konecny
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
###### tags: `Anaconda` `RFC` # [RFC] Use repo files in Anaconda Author: jkonecny \<jkonecny@redhat.com\> Date: 2019-09-06 This is a request for comment for feature which we are considering to be a part of Anaconda. It doesn't mean that this feature will be implemented or when it will be implemented. The main purpose of this RFC is to give community a chance to react and help us to find the best solution for the given problem. ## Short description Extend support for repo files in installation environment to avoid duplicating all the repo files functionality in the pykickstart [repo command](https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#repo). The [repo files](https://dnf.readthedocs.io/en/latest/conf_ref.html) is already well defined format which is used by DNF directly. The repo files supports GPG keys, custom certificates and much more than pykickstart repo command will ever support. ## Justification Right now we have a pykickstart [repo command](https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#repo) that has a plenty of functionality. Based on the last few PRs (see below) it looks it is going to grow even more. Point of this RFC is to get responses from the Anaconda community to find out if the proposed solution is good enough to replace the existing proposals to extend the repo command. This way we would be able to add installer ISO creators a posibility to use complete functionality of the repo files without additional extension of the current pykickstart [repo command](https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#repo). Another benefit will be that all the new functionality implemented by DNF with support from the repo file will automatically work in the Anaconda environment. It should be possible to solve all these issues by this proposal: --- Use [repo ssl options](https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#sshkey) we want to deprecate: - [1] https://github.com/weldr/lorax/pull/839 Add new gpg keys for package verification: - [2] https://github.com/pykickstart/pykickstart/pull/32 - [3] https://pagure.io/pungi/pull-request/63 - [4] https://github.com/rhinstaller/anaconda/pull/375 Add --priority repo command: - [5] https://github.com/pykickstart/pykickstart/pull/275 ## Proposed solution Anaconda is able to load all the repo files in a specific directory and use that as the usual installation source. The harder part is to get the repo files into stage2 image. That is where I would like to get feedback from the maintainers of [Lorax](https://github.com/weldr/lorax/), [LiveCD tools](https://github.com/livecd-tools/livecd-tools) and maybe [Pungi](https://pagure.io/pungi) for injecting the repo files into the existing image. ### Create an updates image which will be applied during the bootup 1) Create a tool which will create an updates image with all the parts in it * repo files * SSL certificates and GPG keys 2) Integrate this updates image to the installation media so it will be automatically applied during the boot *(ISO builders work)* 3) Anaconda will read all the repo files from a predefined folder and use them the same way as if they were loaded by repo kickstart command. This variant will share code for all the ISO creators. It can be easily extended to read SSL certificates and GPG keys from other local path, not just what is pointed by the repo file. ## Alternatives ### Use the current approach (not recommended) Stay with the current solution with extending the kickstart repo command. I would really prefer to avoid this because it would complicate everything about how the repos are working. --- --- # Comments section If you want to comment to the whole topic. Please comment below in other case feel free to comment under parts which are interesting to you. To write a comment you can switch to Edit (`Ctrl+Alt+E`) or Both (`Ctrl+Alt+B`) mode and write under the line separator below: > [name=your name] > comment --- > [name=Neal Gompa] > I'm not sure that this would work in most use-cases for kickstarts. Netinstalls and Koji builds with livecd-creator or livemedia-creator make the assumption that the only needed input is a ks file. Moreover, in most repositories fed in to kickstarts, things like GPG public key are actually *also* available via a URL that can be passed in. I think making repo files required for these extra options is going to make it effectively unusable for the cases where Kickstarts are still actively used for. > > [name=Jiří Konečný] > > Thanks a lot for your insights. We will take this into account for further plans. > [name=Pat Riehecky] > - to be clear, is this targeted at just the behavior in anaconda or will kickstart be changing as well? > - I'm utlizing updates.img for site local customization and would prefer not to reuse updates.img in this manner > > I'd prefer a solution where lorax does the injection directly into the stage2 so that folks doing private mirrors on disconnected networks can maintain the current workflow (pxelinux->vmlinuz/initrd->stage2.img). If you are looking at something more complex, you may also need to bring the folks from pulp-project in for Sat6 intetgration. > >> [name=Jiří Konečný] > - to be clear, is this targeted at just the behavior in anaconda or will kickstart be changing as well? > >> What we are trying to solve is to avoid adding more parts to pykickstart. If there will be a real benefit then we can use kickstart command here but otherwise I don't see a point in kickstart solution. > - I'm utlizing updates.img for site local customization and would prefer not to reuse updates.img in this manner > >> Updates image can be used multiple times with no drawback. It's happening even now. You have product.img and updates.img which both are working the same way. The only difference is the purpose. >> > I'd prefer a solution where lorax does the injection directly into the stage2 so that folks doing private mirrors on disconnected networks can maintain the current workflow (pxelinux->vmlinuz/initrd->stage2.img). If you are looking at something more complex, you may also need to bring the folks from pulp-project in for Sat6 intetgration. > >> That could be an interesting solution. However, this is a question on Brian and Neal if they want to use updates image or rather inject these things on one place in the installation environment. The updates image has a benefit that there could be a tool which will prepare everything for you, so you can just call this tool and use the result. Easy enough and deduplication of work. >> What we want to achieve here is to find a solution which would satisfy all the sides and they will agree on using the same solution from now on. It would be also beneficial to have their requirements on Anaconda. >> For example how Anaconda should react on these repo files? Should they be loaded as additional files or in a similar way how `Closest mirror` is now implemented? > [name=Vratislav Podzimek] What about a new `%repos` section the contents of which would just be used as a `.repo` file? I think that would be a simple way to overcome the limitations of the KS syntax using commands and options (except for sections). > >> [name=Jiří Konečný] >> No it would not help much. The reason is that you have to get gpg keys and certificates with the repo files in the environment. So having the section `%repos` would not really solve much here. >> >>> [name=Vratislav Podzimek] >>> As discussed face to face -- maybe a generic `%file` section would be useful

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully