Skip to content

Commit 5297553

Browse files
authored
Merge pull request #449 from s4heid/disable-floppy
Disable unnecessary floppy kernel module
2 parents 1c1b06b + 76dfd1e commit 5297553

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

bosh-stemcell/spec/support/os_image_linux_kernel_modules_shared_examples.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,10 @@
8383
its(:content) { should match 'install rds /bin/true' }
8484
end
8585
end
86+
87+
context 'prevent floppy module from being loaded' do
88+
describe file('/etc/modprobe.d/blacklist.conf') do
89+
its(:content) { should match 'install floppy /bin/true' }
90+
end
91+
end
8692
end

stemcell_builder/stages/system_kernel_modules/apply.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ install hfsplus /bin/true
1919
install squashfs /bin/true
2020
install udf /bin/true
2121
install rds /bin/true
22+
install floppy /bin/true
2223
options ipv6 disable=1' >> $chroot/etc/modprobe.d/blacklist.conf
2324

2425
echo '# prevent nouveau from loading

0 commit comments

Comments
 (0)