Replies: 4 comments 6 replies
-
@bcl, @jstodola, @jkonecny12, what do you think about this proposal? |
Beta Was this translation helpful? Give feedback.
-
Does that mean that we will change the source in the output kickstart or that the user is required to set the source in kickstart. I guess that you mean the first but I want to be clear about that. |
Beta Was this translation helpful? Give feedback.
-
IMO, it still makes sense to have one repository as the main one - maybe it's even necessary? One note - when using the |
Beta Was this translation helpful? Give feedback.
-
My first question is why? What's broken that this is fixing? I'm also generally reluctant to continue the explosion of command arguments for every possible combination of things. I'd rather see repo be able to use the the URI to determine the source type instead of adding a new option. I'd have to dig into the anaconda code again to be sure, but I'm fairly sure that while dnf treats all the repos the same, anaconda needs to have one 'main' repo where it gets things like stage2, .treeinfo, updates.img, product.img, etc. so that would be the first thing to look out for. I think I really don't want to start adding new nfs options to repo. We already have documented ways to parse nfs: URIs to get all of that information. |
Beta Was this translation helpful? Give feedback.
-
The concept of the base repo
The Anaconda's package installation support is based on a concept of a base repository. It means that one repository is the main one and any other repositories are additional. However, DNF treats all repositories the same way, so this concept doesn't really make sense and only complicates things. Our plan is to drop it and support just a list of repositories. We would like to start with changing the backend, but we need to extend the kickstart support first.
Current kickstart commands
The base repository can be defined by one of the following kickstart commands. We can keep the compatibility with these commands, but we won't be able to generate them in the output kickstart file. It won't be possible to decide whether a repository should be generated as the
repo
kickstart command or, for example, theurl
kickstart command. These commands could be eventually deprecated and removed.The additional repositories can be defined by the
repo
kickstart commands. We would like to extend this command, so it can be used to define any of the base repo sources mentioned above.Changes in the repo command
We would like to suggest the following changes in the
repo
kickstart command.The --name option
At this moment, the repo name is mandatory for additional repositories. We would like to make it optional and generate a predictable unique repo name if none is provided. For example,
anaconda-1
. This change is not required, but it could improve the usability of the command and make the kickstart files easier to write and read.The --source option
The
--source
option would specify the type of the source that provides this repository. For example,cdrom
,hmc
,nfs
,hdd
andurl
. By default, the source should beurl
. However, if the--baseurl
option is set to a path that starts withnfs://
, the source type should default tonfs
to keep the compatibility with the current support. This use case should be deprecated and eventually dropped.The nfs options
The
repo --source=nfs
command should support the following new options. The hostname and directory are mandatory:The hdd options
The
repo --source=hdd
command should support the following new options. Both options are mandatory:The url options
Only the
repo
andrepo --source=url
commands should support the following existing options:However, see the exception for
repo --baseurl=nfs://
above.Beta Was this translation helpful? Give feedback.
All reactions