Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion controls/os_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@
its(:content) { should match 'install hfsplus /bin/true' }
its(:content) { should match 'install squashfs /bin/true' }
its(:content) { should match 'install udf /bin/true' }
its(:content) { should match 'install vfat /bin/true' }
# if efi is active, do not disable vfat. otherwise the system
# won't boot anymore
unless Dir.exist?('/sys/firmware/efi')
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.

@rndmh3ro maybe we have a bug here. Dir.exist? gets executed in the local context and not on the remote system. We should do this check via inspec resources

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.

Uh okay, I did not know this... I'll have to take a look.

its(:content) { should match 'install vfat /bin/true' }
end
end
end

Expand Down