Skip to content

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

Merged
chris-rock merged 1 commit intodev-sec:masterfrom
rndmh3ro:fix_efi
Sep 4, 2018
Merged

efi-check should run on remote host, not locally#103
chris-rock merged 1 commit intodev-sec:masterfrom
rndmh3ro:fix_efi

Conversation

@rndmh3ro
Copy link
Copy Markdown
Member

@rndmh3ro rndmh3ro commented Sep 2, 2018

No description provided.

Copy link
Copy Markdown
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!

Comment thread controls/os_spec.rb
# 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread controls/os_spec.rb
# 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
Copy Markdown
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