Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613516 - sys-kernel/dracut-044-r2 dracut-install: ERROR due to cp: cannot preserve extended attributes, cp is built without xattr support
Summary: sys-kernel/dracut-044-r2 dracut-install: ERROR due to cp: cannot preserve ext...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-22 10:20 UTC by Jan Fikar
Modified: 2019-01-24 13:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dracut output with errors (out,67.32 KB, text/plain)
2017-03-22 10:20 UTC, Jan Fikar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Fikar 2017-03-22 10:20:08 UTC
Created attachment 467886 [details]
dracut output with errors

dracut-044-r2 seems to require coreutils being build with xattr use flag. Not sure if it is useful, I don't use xattr on any of my FS. If it is really required, the ebuild should probably check if coreutils were build with xattr.

test command:  dracut --xz --strip --kver=4.9.6 --force
output contains many errors like this:
...
cp: cannot preserve extended attributes, cp is built without xattr support
dracut-install: ERROR: failed to install '/bin/sh'
...

the resulting initramfs is only 2kB, so very probably wrong.

The same command works for dracut-044-r1 without problems. Also rebuilding coreutils with xattr use flag and dracut-044-r2 works.
Comment 1 Mike Gilbert gentoo-dev 2017-07-02 23:13:52 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90bb5611b5aa9279ff3b0d4f5c25240bf4b0f9db

commit 90bb5611b5aa9279ff3b0d4f5c25240bf4b0f9db
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun Jul 2 19:06:08 2017 -0400

    sys-kernel/dracut: bump to 045
    
    - Clean up ebuild code in general
    - Remove unnecessary version setting
    - Simplify gentoo.conf config file
    - Depend on >=sys-apps/kmod-15 for libkmod
    - Stop removing systemd and other modules
    - Drop systemd USE flag
    - Depend on sys-apps/coreutils[xattr] (bug 613516)
    
    Bug: https://bugs.gentoo.org/615898
    Bug: https://bugs.gentoo.org/613516
    Package-Manager: Portage-2.3.6_p9, Repoman-2.3.2_p77

 sys-kernel/dracut/Manifest                         |   1 +
 .../{dracut-044-r3.ebuild => dracut-045.ebuild}    | 130 ++++-----------------
 2 files changed, 24 insertions(+), 107 deletions(-)