Replies: 5 comments 6 replies
-
@jkonecny12 @jstodola @bcl What do you think about this proposal? |
Beta Was this translation helpful? Give feedback.
-
I agree. |
Beta Was this translation helpful? Give feedback.
-
Btw. dracut uses, for example,
Therefore, it is possible that some of the anaconda's boot options can work with other variants of the nfs format and some suspicions parts of the code seem to confirm that even though it is not documented. |
Beta Was this translation helpful? Give feedback.
-
A quick look at the code history seems to imply that dracut and anaconda were adding this at the same time (late 2009) and IIRC at that time Anaconda wasn't using dracut yet, it was still using the loader written in C. So that may explain the different order of options :) From pykickstart's perspective it doesn't care what the url is. It does have I would lean towards using the dracut format, with the options at the end, because that form is likely to be more familiar to users. |
Beta Was this translation helpful? Give feedback.
-
I agree with @bcl, it would be better the support the dracut format with the mount options at the end. It shouldn't be too difficult:
@jstodola @jkonecny12 Would it be acceptable? |
Beta Was this translation helpful? Give feedback.
-
Summary
During the modularization of the additional repositories, I have noticed that we support two different NFS formats,
nfs:
andnfs://
. We are trying to unify the support for the base repository and the additional repositories as much as possible to reduce the amount of code and prevent inconsistencies. Therefore, it would be great if we could unify the formats as well and eventually support only one of them.The benefits:
The plan:
As you can see in the details below, it looks like the formats started to diverge with additional repositories, because only the
repo
kickstart command and theinst.addrepo
boot option support thenfs://
format. Based on that, it would make sense to choose thenfs:
format. On the other side, this format can be confusing due to the optional<options>
part that is for some reason at the beginning of the string instead of the end. Anyway, none of these formats follow RFC 2224 and we cannot use it without modifications, because it doesn't allow to specify mount options.I propose to choose the
nfs:
format and deprecate thenfs://
format. What do you think?The nfs:// format
Scheme:
nfs://<server>:<path>
nfs://<server>
The inst.addrepo boot option [docs]
inst.addrepo=REPO_NAME,nfs://<server>:/<path>
The repo kickstart command [docs]
Fun fact! This is not documented in RHEL 9 or RHEL 8.
repo --name=REPO_NAME--baseurl=nfs://host:/path/to/repo
The nfs: format
Scheme:
nfs:<options>:<server>:<path>
nfs:<server>:<path>
nfs:<server>
The inst.repo boot option [docs]
inst.repo=nfs:[<options>:]<server>:/<path>
The inst.ks boot option [docs]
inst.ks=nfs:<next_server>:/<filename>
The driverdisk kickstart command [docs]
driverdisk --source=nfs:host:/path/to/dd.img
Other formats
The nfs kickstart command [docs]
nfs --server <hostname> --dir <directory> [--opts <options>]
Beta Was this translation helpful? Give feedback.
All reactions