On Wed, Jan 7, 2015 at 3:52 PM, Mimi Zohar <zohar@xxxxxxxxxxxxxxxxxx> wrote: > This patch modifies the gen_initramfs_list.sh script to include xattrs > in the initramfs. > > Dracut creates the initramfs using the cpio tool on the system, not > the kernel's gen_init_cpio script. The following commands, for example, > would create an initramfs containing xattrs. > > dracut -H -f /boot/initramfs-3.XX.0+.img 3.XX.0+ -M --keep \ > --noprelink --nostrip > gen_initramfs_list.sh /var/tmp/initramfs.XXXXXX/ > \ > /var/tmp/initramfs_list.XXXXXX > > [Sign files here, if not already signed, using evmctl.] > > gen_init_cpio -x /var/tmp/initramfs_list.XXXXXX > \ > /boot/initramfs-3.XX.0+test.img That's pretty awkward. I think it highlights the major downside of this approach in that from a standard distro point of view this functionality isn't likely to be used. Do you foresee this feature as something that should be widely used, or something that would be used more in custom, locked-down machines? I can understand not wanting to redefine the newc format in userspace cpio, but if you want this to be easier to use then perhaps working with dracut upstream to make it support this out of the box would be a good idea. josh -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html