46 Commits

Author SHA1 Message Date
Gyorgy Sarvari
991a6a866c
dracut: upgrade 108 -> 109
Drop patch that is included in this release.

Changelog: https://github.com/dracut-ng/dracut-ng/releases/tag/109

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-25 07:53:23 -08:00
Liu Yiding
bbe5a69b69
dracut: Fix the multi-lib config
When enabling multi-lib,following error occured:

| install: cannot create regular file 'build-dir/build-yocto/tmp/work/aarch64-ubinux-linux/dracut/108/image/usr/lib64/dracut/dracut.conf.d/': No such file or directory

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-30 09:01:05 -07:00
Koen Kooi
e3fc979b65
dracut: update to 108
Drop stale patches, add a patch that enables stripping in an OE enviroment.

Upstream changelog:

* systemd-udevd:  99-systemd.rules added in two places ([a8c0a15c](a8c0a15cf9))
* watchdog:  only install wdctl for the non-systemd case ([ad0fd3a8](ad0fd3a8df))

*   add Debian/Ubuntu specific Dracut configuration ([cba1a2c2](cba1a2c2cd))
*   allow the use of $kernel in initrdname= config ([696397dd](696397dd8d))
*   add support for removing a space separated list of files ([f8dfe3ee](f8dfe3ee5b))
*   make variable set check work with "set -u" ([ee8f4f9d](ee8f4f9d3e))
*   support dracutsysrootdir being unset ([348888b8](348888b8d9))
*   tests are not packaged by default to simplify packaging ([e65a87cf](e65a87cf0a))
*   set hostonly_cmdline config to no by default ([efaee447](efaee44736))
*   set hostonly config by default in configure ([62fdf59c](62fdf59c94))
* Makefile:  explicitly list configs to install ([f7416501](f7416501a7))
* base:  add support for rd.driver.pre ([5ca76df3](5ca76df3a2))
* crypt-gpg:  handle multiple gpg pubkeys ([28ad7910](28ad79106c))
* dracut:
  *  drop DRACUT_PATH and rely on PATH ([2606f985](2606f985d6))
  *  support SOURCE_DATE_EPOCH ([dfcfa6fb](dfcfa6fbe8))
  *  allow users to choose which dlopen dependencies they want ([96a91d04](96a91d04dd))
  *  replace ldd with dracut-install --dry-run or header check ([e8b733f7](e8b733f7c5))
  *  set systemdversion global var using pkg-config ([ed80f9f4](ed80f9f42c))
* dracut-install:
  *  add --dry-run option to replace external ldd usage ([161153f9](161153f901))
  *  extend new ELF parsing code to replace ldd calls ([aac5c914](aac5c914af))
  *  parse ELF .note.dlopen entries for extra deps ([19b5faad](19b5faad97))
* initqueue:  factor out initqueue into its own module ([3daf6783](3daf67830d))
* network-manager:  use upstream initrd services if available ([83dffc58](83dffc58f6))
* resume:  do not depend on initqueue if systemd is used ([34457e07](34457e070b))
* rootfs-block-fallback:  factor out rootfallback into its own module ([2676f1a5](2676f1a5fc))
* watchdog:  do not depend on initqueue if systemd is used ([c8dbd9ec](c8dbd9ecc8))

*   load essential storage kernel modules in sloppy hostonly mode ([87304767](87304767b1))
*   increase deteminism by not relying on the default sorting from ls ([c9f6b867](c9f6b8674e))
*   network-manager dracut module no longer depends on systemd ([8f063e23](8f063e2337))
*   support DRACUT_SYSTEMD being unset ([79ffbd28](79ffbd2829))
*   support hostonly being unset ([c85c9324](c85c93245b))
*   support DRACUT_RESOLVE_LAZY being unset ([3d383ba4](3d383ba4fa))
*   loongarch architecture support ([38f44b35](38f44b35d0))
*   let check_vol_slaves_all return 1 when checks on all slaves fail ([b117013b](b117013b78))
*   improve hostonly sloppy mode ([53537ae7](53537ae77e), closes [#1321](https://github.com/dracut-ng/dracut-ng/issues/1321))
*   load more kernel modules in sloppy hostonly mode ([de862885](de862885ec))
* Makefile:  remove test modules after renumbering ([80961ee0](80961ee0b3))
* base:
  *  base module failure if root password is already set ([e4551d40](e4551d403f))
  *  dracut-lib.sh soft depends on poweroff/reboot/halt ([237108c3](237108c332))
  *  support PREFIX being unset ([7bea9dfe](7bea9dfed6))
  *  only create nobody user for nfs dracut module ([8934a8e5](8934a8e50f))
* dmsquash-live:  erofs collision with latest util-linux ([950475e8](950475e848))
* dracut:
  *  only call uname -r if it is safe to do ([3f4497ed](3f4497ed84))
  *  detect if systemd-detect-virt is available before calling it ([5d3298ea](5d3298ea9e))
  *  consolidate reporting running in a container ([000f5dbf](000f5dbfb6))
  *  ensure hardlink deduplication is reproducible ([9fdf683f](9fdf683f6d))
  *  respect PKG_CONFIG env var instead of hardcoding pkg-config ([0ee92dbb](0ee92dbba6))
* dracut-init:  use sysroot when checking udev rule program existence ([c1000cda](c1000cda35))
* dracut-init.sh:
  *  support DRACUT_NO_XATTR being unset ([d520252a](d520252aae))
  *  initialize _files in inst_libdir_file ([2311abeb](2311abeba5))
* dracut-initramfs-restore:  check for Debian initrd.img symlink ([f80128e9](f80128e91a))
* dracut-install:
  *  sort output of --modalias ([41e43068](41e4306840))
  *  install all suppliers of a supplier's module ([80574db7](80574db78c))
  *  do not limit supplier handling to platform bus ([e35c5173](e35c517310))
  *  add sysfs node parents' modules as dependencies ([3607cd8f](3607cd8fcb))
  *  rework broken destination existence logic ([425e263b](425e263be5))
  *  plug memory leak on kerneldir ([082b6b0a](082b6b0a6e))
  *  deadcode.DeadStores static analyzer warnings ([28041543](28041543f6))
* dracut-lib.sh:  initialize variables in getargs ([ef60bd71](ef60bd7179))
* dracut-logger.sh:  initialize errmsg in dlog_init ([f35a8c7f](f35a8c7f04))
* dracut.conf.d:  reserve namespace 50 to out-of-tree configurations ([d470b436](d470b436ae))
* dracut.sh:
  *  do not use uname to detect kernel version in a container ([2b2debd7](2b2debd794))
  *  initialize variables that get exported ([50426818](504268187b))
  *  don't pass empty string as dir ([758f3eaf](758f3eaf61), closes [#1275](https://github.com/dracut-ng/dracut-ng/issues/1275))
* fcoe-uefi:  exit early on empty vlan ([555b6e1d](555b6e1d68))
* fips:  make sha512hmac an optional requirement ([3d319b55](3d319b55a6))
* generic.conf:  increase ordering for generic.conf ([d823fd86](d823fd86d3))
* i18n:  add $dracutsysrootdir to systemd-vconsole-setup.service path ([90956522](90956522ba))
* livenet:  drop stray command call ([9135136d](9135136d7d), closes [#1240](https://github.com/dracut-ng/dracut-ng/issues/1240))
* lsinitrd:  resolve initrd to real path ([22d93bc0](22d93bc0cd))
* man:  document what to expect running dracut non-root ([b853eba8](b853eba876))
* modules:
  *  free up range 00-09 to out of tree dracut modules ([1edcb076](1edcb07619))
  *  document known module dependencies ([2d98ddb5](2d98ddb5d2))
  *  move more modules with unimportant ordering to 70 ([c439438d](c439438d4f))
  *  all modules with 99 ordering should have a unique number ([2199846f](2199846ffe))
* network-manager:  depend on dbus only when using systemd ([58baf861](58baf861c6))
* simpledrm:  add =drivers/gpu/drm/panel ([b7a2f8d0](b7a2f8d0bd))
* systemd:
  *  systemd.volatile needs overlayfs kernel module ([e1452003](e145200352))
  *  make checking for systemd availability consistent ([8e575556](8e575556da))
* systemd-cryptsetup:  don't pull in fido2/pkcs11/tpm2-tss if omitted ([01b369a5](01b369a586))
* systemd-repart:
  *  allow partition format ([02201361](02201361ac))
  *  copy systemd system drop-in configuration ([bb8bf124](bb8bf12452))
* systemd-sysext:
  *  install the required kernel modules ([7f524d3d](7f524d3d24))
  *  make non-hostonly non-host ([e42755c3](e42755c342))
* systemd-sysusers:
  *  maintain users and groups ([50285645](50285645e6))
  *  remove (g)shadow created by systemd-sysusers ([97b5f91f](97b5f91ff0), closes [#1242](https://github.com/dracut-ng/dracut-ng/issues/1242))
* systemd-udevd:  handle root=gpt-auto for systemd-v258 ([fa17b6fb](fa17b6fb0e))
* test:  renumber test modules to 70 ([99ed458b](99ed458b5b))

Signed-off-by: Koen Kooi <koen.kooi@oss.qualcomm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-23 07:38:37 -07:00
Koen Kooi
92ef23b084
dracut: add 'git' recipe with DEFAULT_PREFERENCE = -1
This updates to a revision that has PR1260, which uses ELF entries to
get dependencies instead of (cross-)ldd. This makes it useable as a tool
to generate initramfses using cross tools, in e.g. do_rootfs.

Since this is not using a tagged release and changes the base logic, add
it as a non-default option using DEFAULT_PREFERENCE = -1.

Extend to native(-sdk) to accomplish just that.

The host-built initramfs (using a custom bbclass) as well as the
on-target built initramfs have been tested on qrb2210-rb1-core-kit and
qcs6490-rb3gen-core-kit machines and work as intented.

Signed-off-by: Koen Kooi <koen.kooi@oss.qualcomm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-04 09:42:10 -07:00
Alexander Kanavin
fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
Changqing Li
bcaf917fa6
dracut: set DRACUT_FULL_VERSION to PV
RACUT_FULL_VERSION is conditional assigned in Makefile as below:
DRACUT_FULL_VERSION ?= $(shell env GIT_CEILING_DIRECTORIES=$(CURDIR)/.. git describe --tags --always 2>/dev/null || :)

When build from git shallow tarball, since tag info is not included,
956c087 is returned. This will make dracut version in dracut.pc
different with build from git repo.

Set DRACUT_FULL_VERSION to PV, to improve reproducibility for this
recipe, and also fix the version mismatch warning

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-05-29 21:07:32 -07:00
Hongxu Jia
f74ce27642
fix broken symlink in dracut config examples
Due to commit [1], it installs dracut config examples under /usr.
But while enable_test=no, the symlink of test in dracut config is broken
...
root@qemux86-64:~# ls /usr/lib/dracut/dracut.conf.d/test*  -ahl
lrwxrwxrwx 1 root root 27 Apr  5  2011 /usr/lib/dracut/dracut.conf.d/test -> ../test/dracut.conf.d/test/
lrwxrwxrwx 1 root root 36 Apr  5  2011 /usr/lib/dracut/dracut.conf.d/test-makeroot -> ../test/dracut.conf.d/test-makeroot/
lrwxrwxrwx 1 root root 31 Apr  5  2011 /usr/lib/dracut/dracut.conf.d/test-root -> ../test/dracut.conf.d/test-root
root@qemux86-64:~# realpath /usr/lib/dracut/dracut.conf.d/test*
realpath: /usr/lib/dracut/dracut.conf.d/test: No such file or directory
realpath: /usr/lib/dracut/dracut.conf.d/test-makeroot: No such file or directory
realpath: /usr/lib/dracut/dracut.conf.d/test-root: No such file or directory
...

This commit cleans up test symlink if enable_test=no

[1] 0d369e3e30

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-05-22 17:39:10 -07:00
Yi Zhao
9ea6475daa
dracut: upgrade 103 -> 106
ChangeLog:
https://github.com/dracut-ng/dracut-ng/releases/tag/106

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-25 09:48:25 -08:00
Yi Zhao
67c1b6c836
dracut: upgrade 102 -> 103
ChangeLog:
https://github.com/dracut-ng/dracut-ng/releases/tag/103

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-10 20:13:08 -07:00
Zoltán Böszörményi
b235b47cb6
dracut: Drop an unnecessary patch
Dropped 0001-util.h-include-sys-reg.h-when-libc-glibc.patch
that's unnecessary for a long time now, because dracut
(since version 049) does not rely on __WORDSIZE.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-10 23:08:41 -07:00
Zoltán Böszörményi
ae843182b4
dracut: Switch to dracut-ng and upgrade to version 102
The previous dracut 056 was hopelessly outdated. When creating
an initramfs from a systemd based system with a recent systemd
version, booting failed with this error:

[    1.906055] systemd[1]: Failed to open executor binary '/usr/lib/systemd/systemd-executor'
[    1.912230] systemd[1]: Failed to allocate manager object: No such file or directory
[!!!!!!] Failed	to allocate manager object
[    1.912480] systemd[1]: Freezing execution

dracut-ng took over after development in the original dracut
repository stopped. Switched to the new source repository.

Dropped two patches upstreamed in dracut-ng.

Added a new patch that partially reverts a change that broke
creating an initramfs on the host using the cross-compiled
sysroot.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-07 21:52:52 -07:00
Andrej Valek
8af2f17a6f cve_check: convert CVE_CHECK_IGNORE to CVE_STATUS
- Try to add convert and apply statuses for old CVEs
- Drop some obsolete ignores, while they are not relevant for current
  version

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-27 08:54:40 -07:00
Mingli Yu
40978c4200 dracut: Remove busybox from RRECOMMENDS
The coreutils which defined in RRECOMMENDS has already provide the basic
command and it conflicts with busybox.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-21 09:39:09 -07:00
Martin Jansa
be8c765c7c *.patch: add Upstream-Status to all patches
There is new patch-status QA check in oe-core:
https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a

This is temporary work around just to hide _many_ warnings from
optional patch-status (if you add it to WARN_QA).

This just added
Upstream-Status: Pending
everywhere without actually investigating what's the proper status.

This is just to hide current QA warnings and to catch new .patch files being
added without Upstream-Status, but the number of Pending patches is now terrible:

5 (26%) 	meta-xfce
6 (50%) 	meta-perl
15 (42%)        meta-webserver
21 (36%)        meta-gnome
25 (57%)        meta-filesystems
26 (43%)        meta-initramfs
45 (45%)        meta-python
47 (55%)        meta-multimedia
312 (63%)       meta-networking
756 (61%)       meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:20 -07:00
Khem Raj
944e9dcdc8 dracut: Do not undefine _FILE_OFFSET_BITS
Fixes build with 64bit time_t

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-31 14:50:37 -08:00
Yi Zhao
fcdafe933c dracut: upgrade 055 -> 056
* Add a patch to fix musl build:
  src/install/util.c:30:19: error: missing binary operator before token "("
     30 | #if __GLIBC_PREREQ(2, 30) == 0
        |                   ^
  make: *** [Makefile:57: src/install/util.o] Error 1

* Pass "-fPIC" to CFLAGS to fix build warning with musl build:
  WARNING: dracut-1_056-r0 do_package_qa: QA Issue: dracut: ELF binary
  /usr/lib/dracut/dracut-install has relocations in .text [textrel]

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-06 20:25:33 -04:00
Khem Raj
42f365246d recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Khem Raj
f2df270179 recipes: Use new CVE_CHECK_IGNORE variable
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-02-21 18:12:04 -08:00
Yi Zhao
b639c25d9a dracut: upgrade 051 -> 055
* Rename recipe name from dracut_git to dracut_055
* Refresh 0001-util.h-include-sys-reg.h-when-libc-glibc.patch

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-18 09:01:51 -08:00
Richard Purdie
b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
hayashi.satoshi@fujitsu.com
9aabe2b4ee dracut: add CVE-2010-4176 to allowlist
CVE-2010-4176 affects only using plymouth-pretrigger.sh script on Fedora.

Signed-off-by: Satoshi Hayashi <hayashi.satoshi@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-15 08:48:50 -07:00
Yi Zhao
419f7e31f5 dracut: upgrade 049 -> 051
Drop the following patches which have been merged upstream:
  0001-dracut.sh-improve-udevdir.patch
  0001-set-viriable-_drv-not-local.patch

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-04 14:48:29 -08:00
Hongxu Jia
4d45ebe7ad dracut: fix generated initramfs boot failure under bash 5
If shebang is set to /bin/sh and /bin/sh is a symlink to /bin/bash,
bash turn on posix mode.

Since bash is upgraded to 5.0, it follows 'IEEE 1003.2 POSIX Shell
Standard', to implement 'functions do not have local traps or options,
and it is not possible to define local variables'

For more detail, see variables.c:push_posix_temp_var in the following commit
http://git.savannah.gnu.org/cgit/bash.git/commit/?id=d233b485e83c3a784b803fb894280773f16f2deb

The IEEE 1003.2 POSIX Shell Standard:
https://www.cs.ait.ac.th/~on/O/oreilly/unix/ksh/appa_02.htm

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-06-21 06:22:19 -07:00
Hongxu Jia
9fce979252 dracut: fix udevdir not found
In commit [9d1b81c dracut.sh: improve udevdir and systemdutildir
fallback logic], it checked a common binary `collect' to localte
udevdir.

While upgrading systemd to 241, it dropped binary `collect'.
[a168792c2d]

So check binary `ata_id' to instead.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-04-06 08:22:22 -07:00
Hong Liu
d6bd1edc2b dracut: 048->049
Upgrade dracut from 048 to 049.

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-16 21:23:47 -07:00
Yi Zhao
1dcc5981c6 dracut: upgrade 047 -> 048
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-26 20:10:07 -07:00
Yi Zhao
d9bb8adedd dracut: upgrade 046 -> 047
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-27 22:17:32 -07:00
Huang Qiyu
e49bb3a812 dracut: 045 -> 046
Upgrade dracut from 045 to 046.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-02-23 20:19:17 -08:00
Huang Qiyu
d50aee5e41 dracut: Add HOMEPAGE info into recipe file.
Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-09-13 11:13:21 +02:00
Khem Raj
606e9b29ec dracut: Upgrade to 045
Fix build on musl while here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-24 18:57:35 +02:00
Peter Kjellerstedt
0c31f55bcf Make use of the new bb.utils.filter() function
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-07 13:30:26 +01:00
Martin Jansa
dc48e768f5 meta-oe: remove trailing spaces
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-22 15:56:29 +02:00
Ross Burton
dad9a7847f meta-initramfs: use bb.utils.contains() instead of base_contains()
base_contains() is a compatibility wrapper and may warn in the future, so
replace all instances with bb.utils.contains().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-28 10:38:39 +02:00
George McCollister
544f8ae0a3 dracut: use bash-completion.bbclass
Use bash-completion.bbclass to package bash completions.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-15 10:16:53 +01:00
Dai Caiyun
8c66edbca3 dracut: 043 -> 044
Upgrade dracut from 043 to 044.

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-27 12:43:56 +01:00
Robert Yang
892c0ad605 dracut: fix host-user-contaminated
Fixed:
dracut-043+giteab03540cd695d940062af5b55c02e8829aaa526: dracut: /dracut/usr/lib/dracut/modules.d/99img-lib/img-lib.sh is owned by uid 15220, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
lib32-dracut-043+giteab03540cd695d940062af5b55c02e8829aaa526: lib32-dracut: /lib32-dracut/usr/lib/dracut/modules.d/99img-lib/img-lib.sh is owned by uid 15220, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

Its Makefile uses cp -arx to install modules.d, so fix the owner
to root:root

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-12-18 12:30:22 +01:00
Joe Slater
e44f49baac dracut: RDEPEND on util-linux
We might need findmnt and setsid, which are in the
util-linux package.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-10-23 12:53:24 +02:00
Wenzong Fan
f4533380c8 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>
2015-09-23 16:10:57 +02:00
Robert Yang
ea86048c8e dracut: RDEPEND on systemd optionally
Use PACKAGECONFIG to depend on systemd optionally.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23 16:10:57 +02:00
Kang Kai
05ddc41c29 dracut: upgrade from 038 to 043
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-30 21:05:47 +02:00
Dan McGregor
57632c54d8 dracut: recipe cleanup
Split out bash-completion data
Update RDEPENDS: getopt is util-linux-getopt now
Use distro_features_check to require systemd
Recommend busybox

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-02-12 19:35:40 +01:00
Koen Kooi
1513d0e31f dracut: update to 038
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-28 19:55:39 +02:00
Koen Kooi
06fd935e4f dracut: add 'getopt' to RDEPENDS
This drags in full util-linux, a future TODO is to split up util-linux
completely in OE-core.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-28 19:55:39 +02:00
Koen Kooi
90045a49e5 dracut: update to 036
* Patch was applied upstream, delete it
* Add coreutils dep to stop scripts from erroring out
* bump PE to since 'git' > '036'

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2014-02-19 13:12:36 +00:00
Koen Kooi
039b0190d9 dracut: add git version
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-01-22 12:22:38 +01:00