diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2015-09-17 03:51:26 -0400 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-09-23 16:10:57 +0200 |
commit | f4533380c8a5c1d229f692222ee0c2ef9d187ef8 (patch) | |
tree | abffaf9b7a60a593faffbe1bc0add6aea9ebf57d /meta-initramfs | |
parent | ea86048c8e0241753466a134790b77bdb193c7c2 (diff) | |
download | meta-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.bb | 9 |
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" | |||
14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
15 | 15 | ||
16 | EXTRA_OECONF = "--prefix=${prefix} \ | 16 | EXTRA_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} \ | |||
28 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | 28 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" |
29 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" | 29 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" |
30 | 30 | ||
31 | EXTRA_OEMAKE += 'libdir=${prefix}/lib' | ||
32 | |||
31 | do_configure() { | 33 | do_configure() { |
32 | ./configure ${EXTRA_OECONF} | 34 | ./configure ${EXTRA_OECONF} |
33 | } | 35 | } |
@@ -40,9 +42,12 @@ PACKAGES =+ "${PN}-bash-completion" | |||
40 | 42 | ||
41 | FILES_${PN}-bash-completion = "${datadir}/bash-completion" | 43 | FILES_${PN}-bash-completion = "${datadir}/bash-completion" |
42 | 44 | ||
43 | FILES_${PN} += " ${libdir}/kernel \ | 45 | FILES_${PN} += "${prefix}/lib/kernel \ |
46 | ${prefix}/lib/dracut \ | ||
44 | ${systemd_unitdir} \ | 47 | ${systemd_unitdir} \ |
45 | " | 48 | " |
49 | FILES_${PN}-dbg += "${prefix}/lib/dracut/.debug" | ||
50 | |||
46 | CONFFILES_${PN} += "${sysconfdir}/dracut.conf" | 51 | CONFFILES_${PN} += "${sysconfdir}/dracut.conf" |
47 | 52 | ||
48 | RDEPENDS_${PN} = "findutils cpio util-linux-blkid util-linux-getopt bash ldd" | 53 | RDEPENDS_${PN} = "findutils cpio util-linux-blkid util-linux-getopt bash ldd" |