diff --git a/builder/chroot-script.sh b/builder/chroot-script.sh index 91ab098..cf396c2 100644 --- a/builder/chroot-script.sh +++ b/builder/chroot-script.sh @@ -57,7 +57,7 @@ enable_uart=1 # /etc/modules echo "vchiq snd_bcm2835 -bcm2708-rng +bcm2835_rng " >> /etc/modules # create /etc/fstab diff --git a/builder/test-integration/spec/hypriotos-image/kernel_modules_spec.rb b/builder/test-integration/spec/hypriotos-image/kernel_modules_spec.rb new file mode 100644 index 0000000..adb88a3 --- /dev/null +++ b/builder/test-integration/spec/hypriotos-image/kernel_modules_spec.rb @@ -0,0 +1,10 @@ +Specinfra::Runner.run_command('modprobe snd_bcm2835') +Specinfra::Runner.run_command('modprobe bcm2835_rng') + +describe kernel_module('snd_bcm2835') do + it { should be_loaded } +end + +describe kernel_module('bcm2835_rng') do + it { should be_loaded } +end