* How/where/which scripts are run when an image boots?
@ 2013-08-02 21:57 Chris Tapp
2013-08-02 23:58 ` Chris Tapp
0 siblings, 1 reply; 2+ messages in thread
From: Chris Tapp @ 2013-08-02 21:57 UTC (permalink / raw)
To: Yocto Discussion Mailing List
I'm trying to understand how the various initrdscripts get called when an image (Cedartrail / 8.0.2) boots as I need to make a few changes.
1) Do the 'live' variants go into the core-image-minimal and the 'boot' ones into the rootfs image?
2) Where are the called from?
I've previously workout out that init-live calls init-install. I've made changes to that so it installs to my device as I want. I'm now trying to do something similar so I can install / boot using ipxe.
Any pointers would be really appreciated.
Chris Tapp
opensource@keylevel.com
www.keylevel.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How/where/which scripts are run when an image boots?
2013-08-02 21:57 How/where/which scripts are run when an image boots? Chris Tapp
@ 2013-08-02 23:58 ` Chris Tapp
0 siblings, 0 replies; 2+ messages in thread
From: Chris Tapp @ 2013-08-02 23:58 UTC (permalink / raw)
To: Yocto Discussion Mailing List
On 2 Aug 2013, at 22:57, Chris Tapp wrote:
> I'm trying to understand how the various initrdscripts get called when an image (Cedartrail / 8.0.2) boots as I need to make a few changes.
>
> 1) Do the 'live' variants go into the core-image-minimal and the 'boot' ones into the rootfs image?
> 2) Where are the called from?
>
> I've previously workout out that init-live calls init-install. I've made changes to that so it installs to my device as I want. I'm now trying to do something similar so I can install / boot using ipxe.
>
> Any pointers would be really appreciated.
Update - It looks as if:
1) core-image-minimal-initramfs uses initramfs-live-boot to install init-live.sh as init.sh and initramfs-live-install to install init-install.sh as install.sh
2) init.sh (init-live.sh) then looks at the 'label' kernel parameter and runs:
a) /sbin/init from the rootfs if label=boot (after switch root);
b) install.sh (init-install.sh) if label=install.
If that's right I need to:
1) Create a new script (init-ipxe.sh) to be installed as init.sh;
2) Create a new script (init-install-ipxe.sh) to be installed as install.sh.
Chris Tapp
opensource@keylevel.com
www.keylevel.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-02 23:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-02 21:57 How/where/which scripts are run when an image boots? Chris Tapp
2013-08-02 23:58 ` Chris Tapp
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.