-
Notifications
You must be signed in to change notification settings - Fork 46
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
Install dir #1959
Install dir #1959
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# path to cdrom which can contain installation repositories | ||
dir_path = "/run/initramfs/live/install" | ||
|
||
if File.exist?(dir_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just nit-picking, I'd reverse the logic:
return false unless File.exist?(dir_path)
logger.info "/install found on installation medium"
repositories.add("dir://" + dir_path)
true
This avoids using an indented block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, searching for a dir should be faster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kobliha I think you mean change of order of checking for dir versus label?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think it will make difference and lets merge this one for now to have something working
Problem
For full offline medium support we need to check also if there is repositories in
/install
on medium.Solution
Add support to detect it and use it if found.
Note: live
/
is not the one from iso, so it needs to check mounted initramfsTesting