On 09.12.24 12:45, MOHAMMED HASSAN via lists.yoctoproject.org wrote:
It didnt work for me guys.
I want to place the file in my root home directory.
# Root home directory
ROOT_HOME ??= "/root"
if you guys have suggestions for me please let me know. I have tried
the following lines below but none worked.
install -d ${D}/${HOME}
install -m 0755 my-file ${D}/${HOME}/my-file
and also tried
install -d ${D}/root
install -m 0755 my-file ${D}/root/my-file
none worked.
Please let me know if they are any more options i can try.
Thanks
Hassan
Just thinking loudly: home folders are special on their own, and root
home is even more special.
Adding files to home folders is usually done through the /etc/skel
directory, that's content is supposed to be copied into newly created
users' folders by useradd. However not sure if it works with root also.
Haven't tried it, though that would be my first try. My second would be
to copy the file somewhere else, and have an init script checks upon
startup if the file is at the correct place...
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64418): https://lists.yoctoproject.org/g/yocto/message/64418
Mute This Topic: https://lists.yoctoproject.org/mt/109914791/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-