* Read-only rootfs, excluding /tmp and /var/logs
@ 2014-10-28 13:47 Andrew Wozniak
2014-10-28 14:20 ` Anders Darander
2014-10-29 5:01 ` ChenQi
0 siblings, 2 replies; 3+ messages in thread
From: Andrew Wozniak @ 2014-10-28 13:47 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
Greetings,
I'm fairly new to the Yocto environment but have worked with lower level
Linux build systems. To get started, my target needs to have a read-only
rootfs, while excluding specific directories like /tmp and /var/logs...
The Project Dev Manual 5.15 section mentions the configuration of a
read-only filesystem. I haven't tried this method yet and was wondering if
there are any options for custom exclusions other than the /tmp and
/var/run mentioned in the docs.
[-- Attachment #2: Type: text/html, Size: 542 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Read-only rootfs, excluding /tmp and /var/logs
2014-10-28 13:47 Read-only rootfs, excluding /tmp and /var/logs Andrew Wozniak
@ 2014-10-28 14:20 ` Anders Darander
2014-10-29 5:01 ` ChenQi
1 sibling, 0 replies; 3+ messages in thread
From: Anders Darander @ 2014-10-28 14:20 UTC (permalink / raw)
To: Andrew Wozniak; +Cc: yocto@yoctoproject.org
* Andrew Wozniak <drew.woz@gmail.com> [141028 15:05]:
> I'm fairly new to the Yocto environment but have worked with lower
> level Linux build systems. To get started, my target needs to have a
> read-only rootfs, while excluding specific directories like /tmp and
> /var/logs...
> The Project Dev Manual 5.15 section mentions the configuration of a
> read-only filesystem. I haven't tried this method yet and was
> wondering if there are any options for custom exclusions other than
> the /tmp and /var/run mentioned in the docs.
If you're working on the lates release, check out the volatile-binds
recipe in oe-core.
Otherwise, check out https://github.com/MentorEmbedded/meta-ro-rootfs,
which is were volatile-binds originates from.
Cheers,
Anders
--
Anders Darander
ChargeStorm AB / eStorm AB
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Read-only rootfs, excluding /tmp and /var/logs
2014-10-28 13:47 Read-only rootfs, excluding /tmp and /var/logs Andrew Wozniak
2014-10-28 14:20 ` Anders Darander
@ 2014-10-29 5:01 ` ChenQi
1 sibling, 0 replies; 3+ messages in thread
From: ChenQi @ 2014-10-29 5:01 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]
On 10/28/2014 09:47 PM, Andrew Wozniak wrote:
> Greetings,
>
> I'm fairly new to the Yocto environment but have worked with lower
> level Linux build systems. To get started, my target needs to have a
> read-only rootfs, while excluding specific directories like /tmp and
> /var/logs...
>
> The Project Dev Manual 5.15 section mentions the configuration of a
> read-only filesystem. I haven't tried this method yet and was
> wondering if there are any options for custom exclusions other than
> the /tmp and /var/run mentioned in the docs.
>
>
I think you are using a sysvinit based system, right?
With the current project, you can follow the two steps below o make
things work:
1. Modify meta/recipes-core/initscripts/initscripts-1.0/volatiles file,
remove the corresponding entries for /tmp and /var/log.
You can do this via a bbappend file in your own layer, or you could just
modified the installed file (/etc/default/volatiles/00_core).
2. Edit your /etc/fstab, add corresponding entries.
I think this is an area we should do better in Yocto.
Best Regards,
Chen Qi
[-- Attachment #2: Type: text/html, Size: 1963 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-29 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 13:47 Read-only rootfs, excluding /tmp and /var/logs Andrew Wozniak
2014-10-28 14:20 ` Anders Darander
2014-10-29 5:01 ` ChenQi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.