summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2015-09-17 03:51:26 -0400
committerMartin Jansa <Martin.Jansa@gmail.com>2015-09-23 16:10:57 +0200
commitf4533380c8a5c1d229f692222ee0c2ef9d187ef8 (patch)
treeabffaf9b7a60a593faffbe1bc0add6aea9ebf57d /meta-initramfs
parentea86048c8e0241753466a134790b77bdb193c7c2 (diff)
downloadmeta-openembedded-f4533380c8a5c1d229f692222ee0c2ef9d187ef8.tar.gz
dracut: install modules to /usr/lib
The dracut modules will be installed to /usr/lib64 while building 64bit targets with multilib enabled, this causes runtime errors: dracut: Cannot find /usr/lib/dracut/dracut-functions.sh. dracut: Are you running from a git checkout? dracut: Try passing -l as an argument to /usr/bin/dracut The dracut modules, 50-dracut.install and 51-dracut-rescue.install must be installed to /usr/lib as Fedora 20 does. Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs')
-rw-r--r--meta-initramfs/recipes-devtools/dracut/dracut_git.bb9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb
index 3be78ed34..8733d548c 100644
--- a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb
+++ b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb
@@ -14,7 +14,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git"
14S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
15 15
16EXTRA_OECONF = "--prefix=${prefix} \ 16EXTRA_OECONF = "--prefix=${prefix} \
17 --libdir=${libdir} \ 17 --libdir=${prefix}/lib \
18 --datadir=${datadir} \ 18 --datadir=${datadir} \
19 --sysconfdir=${sysconfdir} \ 19 --sysconfdir=${sysconfdir} \
20 --sbindir=${sbindir} \ 20 --sbindir=${sbindir} \
@@ -28,6 +28,8 @@ EXTRA_OECONF = "--prefix=${prefix} \
28PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" 28PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
29PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" 29PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd"
30 30
31EXTRA_OEMAKE += 'libdir=${prefix}/lib'
32
31do_configure() { 33do_configure() {
32 ./configure ${EXTRA_OECONF} 34 ./configure ${EXTRA_OECONF}
33} 35}
@@ -40,9 +42,12 @@ PACKAGES =+ "${PN}-bash-completion"
40 42
41FILES_${PN}-bash-completion = "${datadir}/bash-completion" 43FILES_${PN}-bash-completion = "${datadir}/bash-completion"
42 44
43FILES_${PN} += " ${libdir}/kernel \ 45FILES_${PN} += "${prefix}/lib/kernel \
46 ${prefix}/lib/dracut \
44 ${systemd_unitdir} \ 47 ${systemd_unitdir} \
45 " 48 "
49FILES_${PN}-dbg += "${prefix}/lib/dracut/.debug"
50
46CONFFILES_${PN} += "${sysconfdir}/dracut.conf" 51CONFFILES_${PN} += "${sysconfdir}/dracut.conf"
47 52
48RDEPENDS_${PN} = "findutils cpio util-linux-blkid util-linux-getopt bash ldd" 53RDEPENDS_${PN} = "findutils cpio util-linux-blkid util-linux-getopt bash ldd"