diff options
| -rw-r--r-- | meta/recipes-core/base-files/base-files_3.0.14.bb | 23 |
1 files changed, 0 insertions, 23 deletions
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 8bcd91e699..60253fcd42 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 | |||
| @@ -72,29 +72,6 @@ hostname = "${MACHINE}" | |||
| 72 | 72 | ||
| 73 | BASEFILESISSUEINSTALL ?= "do_install_basefilesissue" | 73 | BASEFILESISSUEINSTALL ?= "do_install_basefilesissue" |
| 74 | 74 | ||
| 75 | # In previous versions of base-files, /run was a softlink to /var/run and the | ||
| 76 | # directory was located in /var/volatlie/run. Also, /var/lock was a softlink | ||
| 77 | # to /var/volatile/lock which is where the real directory was located. Now, | ||
| 78 | # /run and /run/lock are the real directories. If we are upgrading, we may | ||
| 79 | # need to remove the symbolic links first before we create the directories. | ||
| 80 | # Otherwise the directory creation will fail and we will have circular symbolic | ||
| 81 | # links. | ||
| 82 | # | ||
| 83 | pkg_preinst:${PN} () { | ||
| 84 | #!/bin/sh -e | ||
| 85 | if [ x"$D" = "x" ]; then | ||
| 86 | if [ -h "/var/lock" ]; then | ||
| 87 | # Remove the symbolic link | ||
| 88 | rm -f /var/lock | ||
| 89 | fi | ||
| 90 | |||
| 91 | if [ -h "/run" ]; then | ||
| 92 | # Remove the symbolic link | ||
| 93 | rm -f /run | ||
| 94 | fi | ||
| 95 | fi | ||
| 96 | } | ||
| 97 | |||
| 98 | do_install () { | 75 | do_install () { |
| 99 | for d in ${dirs555}; do | 76 | for d in ${dirs555}; do |
| 100 | install -m 0555 -d ${D}$d | 77 | install -m 0555 -d ${D}$d |
