-
Notifications
You must be signed in to change notification settings - Fork 191
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
efi-check should run on remote host, not locally #103
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.
Thank you @rndmh3ro Great finding!
@@ -212,7 +213,7 @@ | |||
its(:content) { should match 'install udf /bin/true' } | |||
# if efi is active, do not disable vfat. otherwise the system | |||
# won't boot anymore | |||
unless Dir.exist?('/sys/firmware/efi') | |||
unless efi_dir.exist? |
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 think we can just write unless file('/sys/firmware/efi').exist?
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 tried that but got the following error message:
~/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:726:in `method_missing': `file` is not available on an example group (e.g. a `describe` or `context` block).It is only available from within individual examples (e.g. `it` blocks) or from constructs that run in the scope of an example (e.g. `before`, `let`, etc). (RSpec::Core::ExampleGroup::WrongScopeError)
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.
Alright, lets go with that approach for now. Thank you @rndmh3ro
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.
Thank you @rndmh3ro for this improvement
@@ -212,7 +213,7 @@ | |||
its(:content) { should match 'install udf /bin/true' } | |||
# if efi is active, do not disable vfat. otherwise the system | |||
# won't boot anymore | |||
unless Dir.exist?('/sys/firmware/efi') | |||
unless efi_dir.exist? |
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.
Alright, lets go with that approach for now. Thank you @rndmh3ro
No description provided.