When running dracut on my system, I get: I: *** Pre-linking files *** I: Skipping program /etc/prelink.conf.d/*.conf as it cannot be found and is flagged to be optional chroot: failed to run command ‘/usr/sbin/prelink’: Permission denied I: *** Pre-linking files done *** # ll /usr/sbin/prelink -rwxr-xr-x 1 root root 327704 Oct 5 16:58 /usr/sbin/prelink # ll /usr/sbin -d drwxr-xr-x 1 root root 6626 Mar 30 17:00 /usr/sbin I don't really understand why it complains...
Have you run dracut as root?
I didn't try 026 yet, but I guess this is because of hardened: 1. chroot is very restricted 2. prelink doesn't work.
(In reply to comment #2) > 2. prelink doesn't work. http://www.gentoo.org/doc/en/prelink-howto.xml
Anyway it seems that removing of prelink should help: PRELINK_BIN=$(command -v prelink) if [[ $UID = 0 ]] && [[ $PRELINK_BIN ]]; then if [[ $DRACUT_FIPS_MODE ]]; then dinfo "*** Pre-unlinking files ***" dracut_install -o prelink /etc/prelink.conf /etc/prelink.conf.d/*.conf /etc/prelink.cache chroot "$initdir" $PRELINK_BIN -u -a rm -f "$initdir"/$PRELINK_BIN rm -fr "$initdir"/etc/prelink.* dinfo "*** Pre-unlinking files done ***" else dinfo "*** Pre-linking files ***" dracut_install -o prelink /etc/prelink.conf /etc/prelink.conf.d/*.conf chroot "$initdir" $PRELINK_BIN -a rm -f "$initdir"/$PRELINK_BIN rm -fr "$initdir"/etc/prelink.* dinfo "*** Pre-linking files done ***" fi fi
(In reply to comment #1) > Have you run dracut as root? Yes, I run it as root. My kernel is not hardened. dmesg logs nothing. /var/log/everything/current does not log anything related either.
(In reply to comment #5) Maybe /var/tmp mounted with noexec option?
Or /tmp/? Because this one is used for default on Gentoo.
(In reply to comment #6) > (In reply to comment #5) > Maybe /var/tmp mounted with noexec option? (In reply to comment #7) > Or /tmp/? Because this one is used for default on Gentoo. Yes, both are noexec.
(In reply to comment #7) > Or /tmp/? Because this one is used for default on Gentoo. No, default value for tmpdir is /var/tmp and it is not changed on Gentoo: # grep -hr tmpdir /var/tmp/portage/sys-kernel/dracut-026-r1/image/etc/ #tmpdir=/tmp
Dennis, you should remount /var/tmp without noexec before running dracut, or use --tmpdir option to override the default value.
Or create config in /etc/dracut.conf.d/ and define tmpdir in it.
Dennis, have you tried Alexander's hints? I'm closing it for now. Please reopen if the issue occurs for you.