All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto - Building initramfs to run a shell script for the support of IMA/EVM
@ 2017-01-20 12:44 Eswaran Vinothkumar (BEG-PT/PJ-IOT1)
  2017-01-20 17:07 ` Rick Altherr
  2017-01-22 11:42 ` Patrick Ohly
  0 siblings, 2 replies; 5+ messages in thread
From: Eswaran Vinothkumar (BEG-PT/PJ-IOT1) @ 2017-01-20 12:44 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1360 bytes --]

Hello Yocto community developers,

I am currently working on the task of porting an existing build system to Yocto to create customized Linux distribution for an embedded product. I have successfully created a bare box image, the kernel and root file system image and the system startup is working fine.

I am now investigating on creating the initramfs using Yocto and have gone through the Yocto documents for the same.

Adding the options :
INITRAMFS_FSTYPES = "cpio.gz"
INITRAMFS_IMAGE = "custom-initramfs"  --> my recipe which inherited core-image.bb recipe

Results in the creation of 'custom-image-20170120105621.rootfs.cpio.gz' file.

We are using initramfs to run a script which before mounting the root file system checks for ima policy and also responsible for loading the evm-keys. In short, the initramfs contains a script which is executed before mounting the main root file system. So I think I need to follow a different procedure than the one I mentioned above for my use case. Also we are using systemd as the init system and for the initramfs I don't need sysv or systemd as all I will do is running a script in initramfs.

Is there a better way of creating this structure in Yocto, any information would be helpful.


Mit freundlichen Grüßen / Best regards

Vinothkumar Eswaran
BEG-PT/PJ-IOT1

Tel. +49(7062)911-02


[-- Attachment #2: Type: text/html, Size: 5648 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-23 16:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-20 12:44 Yocto - Building initramfs to run a shell script for the support of IMA/EVM Eswaran Vinothkumar (BEG-PT/PJ-IOT1)
2017-01-20 17:07 ` Rick Altherr
2017-01-22 11:42 ` Patrick Ohly
2017-01-23 14:08   ` Jeremy Thien
2017-01-23 16:40     ` Jeremy Thien

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.