You can start by inspecting your image's rootfs, the scripts to run on first boot should be in /etc/ somewhere. Are they?
Alex On Fri, 27 Mar 2020 at 09:14, <[email protected]> wrote: > Hi, > I am trying to execute a few shell commands the first time a new image > boots. The Yocto built-in mechanism for that should be > *pkg_postinst_ontarget_${PN}.*However I can not get the commands I put > within that function to execute. I am having a hard time trying to figure > out what the problem is. > I am installing the new image to my board via SWUpdate. My suspicion is > that the mechanism behind the *pkg_postinst_ontarget_${PN}* is somehow > hindered by the SWUpdate utility. > I could imagine that whatever mechanism is used might me > surpressed/ignored by the SWUpdate process. > > That is why im asking about the exact mechanism within Linux that is used > to execute the contents of the *pkg_postinst_ontarget_${PN}* function on > first boot. > > As a reference: > Yocto version: sumo > pkg_postinst_ontarget_${PN} () { > #!/bin/sh > file=$D/home/root/test.txt > printf "hello world\n" > $file > } > > Thanks in advance > Stefan Wenninger >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#48946): https://lists.yoctoproject.org/g/yocto/message/48946 Mute This Topic: https://lists.yoctoproject.org/mt/72582932/21656 Mute #yocto: https://lists.yoctoproject.org/mk?hashtag=yocto&subid=6691583 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
