summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-03-31 10:34:37 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-03-31 10:34:37 +0000
commit86121e978f1e2d54ec460852798fb58a89ed9e39 (patch)
tree3cb6bb35ecc70753d6cd343aba3f08556764dcca
parentfe7cbc686c5d52eb1f7ffd20485c977142ddaae3 (diff)
downloaddefinitions-86121e978f1e2d54ec460852798fb58a89ed9e39.tar.gz
Set the modprobe path to /bin/modprobe
This is a workaround to fix the error in the kernel when run targetcli / ls: "request_module() failed for iscsi_target_mod.ko: -2" This was caused because request_module looks into /proc/sys/kernel/modprobe for the path of modprobe which by default was set to /sbin/modprobe. Replace this workaround creating /usr/lib/sysctl.d/modprobe.conf file into the kmod.morph chunk.
-rw-r--r--openstack/manifest2
-rw-r--r--openstack/usr/lib/sysctl.d/modprobe.conf1
2 files changed, 3 insertions, 0 deletions
diff --git a/openstack/manifest b/openstack/manifest
index 123d1668..62bb5685 100644
--- a/openstack/manifest
+++ b/openstack/manifest
@@ -161,3 +161,5 @@
0100644 0 0 /etc/hosts
0100644 0 0 /etc/systemd/system/openstack-cinder-configure-backends.service
0100755 0 0 /usr/share/openstack/openstack-cinder-configure-backends
+0040755 0 0 /usr/lib/sysctl.d
+0100644 0 0 /usr/lib/sysctl.d/modprobe.conf
diff --git a/openstack/usr/lib/sysctl.d/modprobe.conf b/openstack/usr/lib/sysctl.d/modprobe.conf
new file mode 100644
index 00000000..fd8a36e2
--- /dev/null
+++ b/openstack/usr/lib/sysctl.d/modprobe.conf
@@ -0,0 +1 @@
+kernel.modprobe=/bin/modprobe