Skip to content
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

Changed URI variable match for usb device #2181

Merged
merged 1 commit into from Dec 10, 2016

Conversation

dgutu-suse
Copy link
Contributor

The URI for usb devices doesn't match anymore 'usbstick' on installation from usb.
Just removed the 'stick' part from the string.
Depends also on https://bugzilla.suse.com/show_bug.cgi?id=1012258
because the match need at least one enabled repo( usb source in our case).

Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about pre-SP3?

@dgutu-suse
Copy link
Contributor Author

What is about pre-SP3?

@mitiao
Copy link
Contributor

mitiao commented Dec 5, 2016

SP0, SP1, SP2 etc.. :)

@dgutu-suse
Copy link
Contributor Author

dgutu-suse commented Dec 5, 2016

:))))) @mitiao yeah
I was lost, thank you.
@okurz - I will adjust the testcase for pre-SP3. Thx.

@dgutu-suse dgutu-suse force-pushed the zypper_lr branch 2 times, most recently from 4823b84 to 1b40524 Compare December 5, 2016 15:27
@@ -617,7 +617,8 @@ sub validate_repos {
$uri = "http[s]*://.*suse";
}
elsif (get_var('USBBOOT')) {
$uri = "hd:///.*usbstick";
$uri = "hd:///.*usb" if get_var('VERSION', '12-SP3');
$uri = "hd:///.*usbstick" if !get_var('VERSION', '12-SP3'); #pre-SP3 check
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's not a good idea. Why shouldn't it apply for more recent versions? Probably you want to use utils::sle_version_at_least

@dgutu-suse
Copy link
Contributor Author

How does it look now?

@okurz okurz removed the question label Dec 10, 2016
@okurz okurz merged commit 3951a4d into os-autoinst:master Dec 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants