From 69b4ca4b5accc7bbe1b0c667a37120ae0f310cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 28 Mar 2018 23:40:24 +0200 Subject: [PATCH] base-files: remove pkg_preinst - it is exactly what oe-core does MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- recipes-core/base-files/base-files_%.bbappend | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/recipes-core/base-files/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend index e479205..1b8e31d 100644 --- a/recipes-core/base-files/base-files_%.bbappend +++ b/recipes-core/base-files/base-files_%.bbappend @@ -2,26 +2,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" BASEFILESISSUEINSTALL = "do_install_angstromissue" -# In previous versions of base-files, /run was a softlink to /var/run and the -# directory was located in /var/volatlie/run. Also, /var/lock was a softlink -# to /var/volatile/lock which is where the real directory was located. Now, -# /run and /run/lock are the real directories. If we are upgrading, we may -# need to remove the symbolic links first before we create the directories. -# Otherwise the directory creation will fail and we will have circular symbolic -# links. -# -pkg_preinst_${PN} () { - #!/bin/sh -e - if [ x"$D" = "x" ]; then - rm -rf /var/lock - - if [ -h "/run" ]; then - # Remove the symbolic link - rm -f /run - fi - fi -} - do_install_angstromissue () { echo ${MACHINE} > ${D}${sysconfdir}/hostname