From 86121e978f1e2d54ec460852798fb58a89ed9e39 Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Tue, 31 Mar 2015 10:34:37 +0000 Subject: 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. --- openstack/manifest | 2 ++ openstack/usr/lib/sysctl.d/modprobe.conf | 1 + 2 files changed, 3 insertions(+) create mode 100644 openstack/usr/lib/sysctl.d/modprobe.conf 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 -- cgit v1.2.1