cancel
Showing results for 
Search instead for 
Did you mean: 

Copy file into bootfs partition

Mark81
Associate III

Using the Distribution Package for STM32MP1 I wrote a simple function to copy some file to the rootfs image and execute fine-tuning commands:

my_postprocess_function() {
	cp -dr /home/osboxes/Documents/overlay/* ${IMAGE_ROOTFS}
	ln -s /lib/systemd/system/apache2.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/apache2.service
}
 
ROOTFS_POSTPROCESS_COMMAND += "my_postprocess_function; "

It works fine but of course don't work for files in `/boot` because it's another partition and the tree under `${IMAGE_ROOTFS}` does not contain it.

So, what's the right syntax to execute any command in the `boot/` directory?

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Answered in post

https://community.st.com/s/question/0D50X0000C6cAemSQE/how-to-access-to-bootfs-from-distribution-package

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Olivier GALLIEN
ST Employee

Answered in post

https://community.st.com/s/question/0D50X0000C6cAemSQE/how-to-access-to-bootfs-from-distribution-package

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.