Signed-off-by: Philip Tricca <fl...@twobit.us> --- .../misc-create_inode.c-label-fs-objects.patch | 30 ++++++++++++++++++++++ .../e2fsprogs/e2fsprogs_1.42.9.bbappend | 1 + 2 files changed, 31 insertions(+) create mode 100644 recipes-devtools/e2fsprogs/e2fsprogs/misc-create_inode.c-label-fs-objects.patch
diff --git a/recipes-devtools/e2fsprogs/e2fsprogs/misc-create_inode.c-label-fs-objects.patch b/recipes-devtools/e2fsprogs/e2fsprogs/misc-create_inode.c-label-fs-objects.patch new file mode 100644 index 0000000..9532b8e --- /dev/null +++ b/recipes-devtools/e2fsprogs/e2fsprogs/misc-create_inode.c-label-fs-objects.patch @@ -0,0 +1,30 @@ +Add call to 'set_inode_xattrs' in populate_fs function. This rides on the +recursive nature of populate_fs and copies xattrs for each file system object +except for the root directory that we handle separately. + +Signed-off-by: Philip Tricca <fl...@twobit.us> + +Index: e2fsprogs-1.42.9/misc/create_inode.c +=================================================================== +--- e2fsprogs-1.42.9.orig/misc/create_inode.c ++++ e2fsprogs-1.42.9/misc/create_inode.c +@@ -1,5 +1,6 @@ + #include "create_inode.h" + #include <limits.h> ++#include "xattr.h" + + #if __STDC_VERSION__ < 199901L + # if __GNUC__ >= 2 +@@ -549,6 +550,12 @@ errcode_t populate_fs(ext2_ino_t parent_ + return retval; + } + ++ if ((retval = set_inode_xattr (current_fs, ino, name))) { ++ com_err(__func__, retval, ++ _("while setting xattrs for \"%s\""), name); ++ return retval; ++ } ++ + /* Save the hardlink ino */ + if (save_inode) { + /* diff --git a/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend b/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend index fe72a4c..990141b 100644 --- a/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend +++ b/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend @@ -4,4 +4,5 @@ SRC_URI += " \ file://misc-xattr-copy-xattrs.patch \ file://Makefile.in-build-xattr.o.patch \ file://misc-mke2fs.c-label-root-dir-and-cleanup.patch \ + file://misc-create_inode.c-label-fs-objects.patch \ " -- 2.1.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto