Skip to content

imx-test: Use ROOT_HOME instead of hardcoded home directory#1771

Merged
otavio merged 1 commit intoFreescale:kirkstonefrom
hiagofranco:backport-use_root_home_yocto_var
Mar 14, 2024
Merged

imx-test: Use ROOT_HOME instead of hardcoded home directory#1771
otavio merged 1 commit intoFreescale:kirkstonefrom
hiagofranco:backport-use_root_home_yocto_var

Conversation

@hiagofranco
Copy link
Copy Markdown
Contributor

Hardcoding the root home directory could cause issues when the ROOT_HOME is not set to '/home/root'. As example, the ROOT_HOME can be changed to '/root', which makes imx-test install files in the wrong folder.

Therefore, replace '/home/root' with '$ROOT_HOME'. Usually, ROOT_HOME is already set to '/home/root' [1].

[1] https://docs.yoctoproject.org/4.3.3/ref-manual/variables.html?highlight=variables#term-ROOT_HOME

Signed-off-by: Hiago De Franco hiago.franco@toradex.com
(Cherry picked from commit 666c40c)

Hardcoding the root home directory could cause issues when the ROOT_HOME
is not set to '/home/root'. As example, the ROOT_HOME can be changed to
'/root', which makes imx-test install files in the wrong folder.

Therefore, replace '/home/root' with '$ROOT_HOME'.
Usually, ROOT_HOME is already set to '/home/root' [1].

[1] https://docs.yoctoproject.org/4.3.3/ref-manual/variables.html?highlight=variables#term-ROOT_HOME

Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
(Cherry picked from commit 666c40c)
@otavio otavio merged commit d6092d7 into Freescale:kirkstone Mar 14, 2024
@hiagofranco hiagofranco deleted the backport-use_root_home_yocto_var branch March 14, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants