Skip to content

Instantly share code, notes, and snippets.

@johnduarte
Created May 28, 2015 18:30
Show Gist options
  • Save johnduarte/aa7ad8d8f45e382c0bcb to your computer and use it in GitHub Desktop.
Save johnduarte/aa7ad8d8f45e382c0bcb to your computer and use it in GitHub Desktop.
Mount failure when loop kernel module is not loaded
root@kchejzi5z568vxr:~# cat manifest.pp
mount { '/pl21474':
ensure => 'mounted',
device => '/tmp/pl21474',
dump => '0',
fstype => 'ext3',
options => 'loop',
pass => '0',
target => '/etc/fstab',
}
root@kchejzi5z568vxr:~# puppet apply manifest.pp
Notice: Compiled catalog for kchejzi5z568vxr.delivery.puppetlabs.net in environment production in 0.42 seconds
Notice: /Stage[main]/Main/Mount[/pl21474]/ensure: defined 'ensure' as 'mounted'
Error: /Stage[main]/Main/Mount[/pl21474]: Could not evaluate: Execution of '/bin/mount /pl21474' returned 2: mount: Could not find any loop device. Maybe this kernel does not know
about the loop device? (If so, recompile or `modprobe loop'.)
Notice: Applied catalog in 0.07 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment