dracut
dracut copied to clipboard
fix(dracut-install): Copy xattr when use clone ioctl
When use clone ioctl to copy a file, the extended attributes of files are missing, which is inconsistent with the result by using the cp command. This commit add the process to copy extended attributes after clone_file().
Changes
Add the process to copy extended attributes after clone_file().
Checklist
- [ ] I have tested it locally
- [ ] I have reviewed and updated any documentation if relevant
- [ ] I am providing new code and test(s) for it
Fixes #