Skip to content

Commit 3faea0c

Browse files
ystrosaramprice
authored andcommitted
More module refactoring
Signed-off-by: Aram Price <aram.price@broadcom.com>
1 parent f68d644 commit 3faea0c

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

bosh-stemcell/spec/support/os_image_linux_kernel_modules_shared_examples.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,22 @@
9595
its(:content) { should match "install algif_aead /bin/true" }
9696
end
9797
end
98+
99+
context "prevent esp4 module from being loaded" do
100+
describe file("/etc/modprobe.d/blacklist.conf") do
101+
its(:content) { should match "install esp4 /bin/true" }
102+
end
103+
end
104+
105+
context "prevent esp6 module from being loaded" do
106+
describe file("/etc/modprobe.d/blacklist.conf") do
107+
its(:content) { should match "install esp6 /bin/true" }
108+
end
109+
end
110+
111+
context "prevent rxrpc module from being loaded" do
112+
describe file("/etc/modprobe.d/blacklist.conf") do
113+
its(:content) { should match "install rxrpc /bin/true" }
114+
end
115+
end
98116
end

stemcell_builder/stages/system_kernel_modules/apply.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ install udf /bin/true
2121
install rds /bin/true
2222
install floppy /bin/true
2323
install algif_aead /bin/true
24+
install esp4 /bin/true
25+
install esp6 /bin/true
26+
install rxrpc /bin/true
2427
options ipv6 disable=1' >> $chroot/etc/modprobe.d/blacklist.conf
2528

2629
echo '# prevent nouveau from loading

0 commit comments

Comments
 (0)