Skip to content

Commit 436bf2f

Browse files
authored
Merge pull request #175 from dev-sec/ubuntu22
only disable SquashFS if it's not needed
2 parents 81ce2ab + 92cedeb commit 436bf2f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

controls/os_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@
254254
its(:content) { should match 'install jffs2 /bin/true' }
255255
its(:content) { should match 'install hfs /bin/true' }
256256
its(:content) { should match 'install hfsplus /bin/true' }
257-
its(:content) { should match 'install squashfs /bin/true' }
257+
# Ubuntu Snaps need SquashFS to function
258+
unless service('snapd').running?
259+
its(:content) { should match 'install squashfs /bin/true' }
260+
end
258261
its(:content) { should match 'install udf /bin/true' }
259262
# if efi is active, do not disable vfat. otherwise the system
260263
# won't boot anymore

0 commit comments

Comments
 (0)