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

efi-check should run on remote host, not locally #103

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

rndmh3ro
Copy link
Member

@rndmh3ro rndmh3ro commented Sep 2, 2018

No description provided.

Copy link
Member

@chris-rock chris-rock left a 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?
Copy link
Member

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?

Copy link
Member Author

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)

Copy link
Member

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

Copy link
Member

@chris-rock chris-rock left a 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?
Copy link
Member

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

@chris-rock chris-rock merged commit f4c39c8 into dev-sec:master Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants