-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VOLATILE_TMP_DIR: Extend to specify the persistence of /var/tmp
Currently, set VOLATILE_TMP_DIR to "no", only make /tmp as persistent. This patch extends VOLATILE_TMP_DIR to also specify the persistence of /var/tmp by following changes: * change FILESYSTEM_PERMS_TABLES to remove symlink /var/tmp -> /var/volatile/tmp for the packaging process * update base-files to create /var/tmp as a dir not symlink to /var/volatile/tmp Here is an use case: Steps: 1. docker import core-image-minimal-qemux86-64.tar.bz2 poky:latest 2. docker run -it --rm poky:latest /bin/sh 3. /var/log /var/tmp are deadlinks, and cause "No such file or directory" errors Root cause: By default, /var/tmp links to /var/volatile/tmp, and /var/volatile/tmp usually created by initscript(sysV) or systemd-tmpfile.d(systemd) during boot up, but for container, initscript/systemd-tmpfile.d will not be executed, so /var/volatile/tmp is not created. This patch provides an option for user want to use container, set VOLATILE_TMP_DIR to "no" can resolve above case. (From OE-Core rev: 1f1d8be8cbaf965c0826ef56938967acbeb8d846) Signed-off-by: Changqing Li <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
- Loading branch information
Showing
5 changed files
with
41 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file contains a list of files and directories with known permissions. | ||
# It is used by the packaging class to ensure that the permissions, owners and | ||
# group of listed files and directories are in sync across the system. | ||
# | ||
# The format of this file | ||
# | ||
#<path> <mode> <uid> <gid> <walk> <fmode> <fuid> <fgid> | ||
# | ||
# or | ||
# | ||
#<path> link <target> | ||
# | ||
# <path>: directory path | ||
# <mode>: mode for directory | ||
# <uid>: uid for directory | ||
# <gid>: gid for directory | ||
# <walk>: recursively walk the directory? true or false | ||
# <fmode>: if walking, new mode for files | ||
# <fuid>: if walking, new uid for files | ||
# <fgid>: if walking, new gid for files | ||
# <target>: turn the directory into a symlink point to target | ||
# | ||
# in mode, uid or gid, a "-" means don't change any existing values | ||
# | ||
# /usr/src 0755 root root false - - - | ||
# /usr/share/man 0755 root root true 0644 root root | ||
|
||
# Note: all standard config directories are automatically assigned "0755 root root false - - -" | ||
|
||
# Documentation should always be corrected | ||
|
||
# Items from base-files | ||
# Links | ||
${localstatedir}/log link volatile/log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters