All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] base-files: add /run to dirs755 for systemd
@ 2013-05-13  3:58 Jonathan Liu
  2013-05-13 10:53 ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Liu @ 2013-05-13  3:58 UTC (permalink / raw)
  To: openembedded-core

The /run directory needs to exist when using systemd otherwise startup
fails with the following error:
systemd[1]: Failed to mount /run: No such file or directory

This affects directdisk and vmdk images but images using an initrd do
not appear to be affected.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta/recipes-core/base-files/base-files_3.0.14.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb
index a56450d..7713564 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -34,7 +34,7 @@ docdir_append = "/${P}"
 dirs1777 = "/tmp ${localstatedir}/volatile/lock ${localstatedir}/volatile/tmp"
 dirs2775 = "/home ${prefix}/src ${localstatedir}/local"
 dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \
-           ${sysconfdir}/skel /lib /mnt /proc ${ROOT_HOME} /sbin \
+           ${sysconfdir}/skel /lib /mnt /proc ${ROOT_HOME} /run /sbin \
            ${prefix} ${bindir} ${docdir} /usr/games ${includedir} \
            ${libdir} ${sbindir} ${datadir} \
            ${datadir}/common-licenses ${datadir}/dict ${infodir} \
-- 
1.8.2.3




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] base-files: add /run to dirs755 for systemd
  2013-05-13  3:58 [PATCH] base-files: add /run to dirs755 for systemd Jonathan Liu
@ 2013-05-13 10:53 ` Burton, Ross
  2013-05-19 13:25   ` Jonathan Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2013-05-13 10:53 UTC (permalink / raw)
  To: Jonathan Liu; +Cc: openembedded-core

On 13 May 2013 04:58, Jonathan Liu <net147@gmail.com> wrote:
> The /run directory needs to exist when using systemd otherwise startup
> fails with the following error:
> systemd[1]: Failed to mount /run: No such file or directory

This is a genuine bug, but I'm not convinced it is the whole fix.
What about non-systemd images?  /run is meant to be a tmpfs, which is
why udev installs a volatile link from /run to /var/run.  If we create
a directory in sysvinit cases, we'll also need to mount a tmpfs on it.

The FHS 3 draft specification actually ratifies /run[1] so we could
take this advantage to start cleaning up our volatile layout in /var.
Start by always creating /run in base-files, and always mounting it as
tmpfs in fstab for the non-systemd case.  Then we can symlink /var/run
to /run, /var/lock to /run/lock, and so on.

Ross

[1] http://www.linuxbase.org/betaspecs/fhs/fhs.html#runRuntimeVariableData



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] base-files: add /run to dirs755 for systemd
  2013-05-13 10:53 ` Burton, Ross
@ 2013-05-19 13:25   ` Jonathan Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Liu @ 2013-05-19 13:25 UTC (permalink / raw)
  To: Burton, Ross; +Cc: openembedded-core

On 13/05/2013 8:53 PM, Burton, Ross wrote:
> On 13 May 2013 04:58, Jonathan Liu <net147@gmail.com> wrote:
>> The /run directory needs to exist when using systemd otherwise startup
>> fails with the following error:
>> systemd[1]: Failed to mount /run: No such file or directory
> This is a genuine bug, but I'm not convinced it is the whole fix.
> What about non-systemd images?  /run is meant to be a tmpfs, which is
> why udev installs a volatile link from /run to /var/run.  If we create
> a directory in sysvinit cases, we'll also need to mount a tmpfs on it.
>
> The FHS 3 draft specification actually ratifies /run[1] so we could
> take this advantage to start cleaning up our volatile layout in /var.
> Start by always creating /run in base-files, and always mounting it as
> tmpfs in fstab for the non-systemd case.  Then we can symlink /var/run
> to /run, /var/lock to /run/lock, and so on.
I have submitted a more complete patch for your review.
> Ross
>
> [1] http://www.linuxbase.org/betaspecs/fhs/fhs.html#runRuntimeVariableData
Regards,
Jonathan



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-19 13:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-13  3:58 [PATCH] base-files: add /run to dirs755 for systemd Jonathan Liu
2013-05-13 10:53 ` Burton, Ross
2013-05-19 13:25   ` Jonathan Liu

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.