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