From: Gyorgy Sarvari <skandigraun@gmail.com>
To: yocto@lists.yoctoproject.org, hassanchattarki@gmail.com,
aravind posina <posinaaravind0205@gmail.com>
Subject: Re: [yocto] How to install files in root directory
Date: Mon, 9 Dec 2024 13:27:03 +0100 [thread overview]
Message-ID: <37255ef2-97cf-4d70-8cb9-237510cbd3a0@gmail.com> (raw)
In-Reply-To: <15637.1733744721485146927@lists.yoctoproject.org>
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...
prev parent reply other threads:[~2024-12-09 12:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-04 4:52 How to install files in root directory MOHAMMED HASSAN
2024-12-04 5:36 ` [yocto] " Ashish Mishra
2024-12-04 5:37 ` aravind posina
2024-12-09 11:45 ` MOHAMMED HASSAN
2024-12-09 11:51 ` Alexander Kanavin
2024-12-09 12:27 ` Gyorgy Sarvari [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=37255ef2-97cf-4d70-8cb9-237510cbd3a0@gmail.com \
--to=skandigraun@gmail.com \
--cc=hassanchattarki@gmail.com \
--cc=posinaaravind0205@gmail.com \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox