Return-Path: Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by mail.openembedded.org (Postfix) with ESMTP id 6730D7EEC2 for ; Sat, 20 Jul 2019 00:12:41 +0000 (UTC) Received: from linuxdev2.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 025715C02F6; Sat, 20 Jul 2019 02:12:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1563581561; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:references; bh=4NlBdSyFsODyu8xm5hxBzevUQbfbTqzzhZB+XTG6oNU=; b=iUyEEOBj0JA2uOsCGii7hkpeYqksFXw3xlvNbdJX73pJ0tNdDLL7iGG24oKJtBpa8OexMm BP8tflfx/E/MpcsZV6XIsYW3RgTmDYuW2H83RRnSF07Lh7AGu+chYAoNWsbZVRPhbTj2uq LwP9lPkvsL0g9RWTOcJ0qE70rU1g4hw= From: Stefan Agner To: openembedded-core@lists.openembedded.org, richard.purdie@linuxfoundation.org Date: Sat, 20 Jul 2019 02:12:37 +0200 Message-Id: <20190720001237.44615-1-stefan@agner.ch> X-Mailer: git-send-email 2.13.6 Cc: Stefan Agner Subject: [PATCH v2] psplash: create psplash tmpfs mount directory in psplash-init X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2019 00:12:41 -0000 From: Stefan Agner The psplash binary uses TMPDIR as directory to store the FIFO to communicate with the psplash tools. This directory can be in any location an init system determines to be suitable, psplash-init uses /mnt/ for it. Rather than creating the mount directory in the recipe, just create it in the init script itself. This allows other init scripts to use a different location without having an unnecessary .psplash directory in /mnt. Signed-off-by: Stefan Agner --- meta/recipes-core/psplash/files/psplash-init | 1 + meta/recipes-core/psplash/psplash_git.bb | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/meta/recipes-core/psplash/files/psplash-init b/meta/recipes-core/psplash/files/psplash-init index 0bce1de536..fee23e681c 100755 --- a/meta/recipes-core/psplash/files/psplash-init +++ b/meta/recipes-core/psplash/files/psplash-init @@ -24,6 +24,7 @@ for x in $CMDLINE; do done export TMPDIR=/mnt/.psplash +[ -d $TMPDIR ] || mkdir -p $TMPDIR mount tmpfs -t tmpfs $TMPDIR -o,size=40k rotation=0 diff --git a/meta/recipes-core/psplash/psplash_git.bb b/meta/recipes-core/psplash/psplash_git.bb index 3161a5e3f1..56734c1582 100644 --- a/meta/recipes-core/psplash/psplash_git.bb +++ b/meta/recipes-core/psplash/psplash_git.bb @@ -97,7 +97,6 @@ python do_compile () { } do_install_append() { - install -d ${D}/mnt/.psplash/ install -d ${D}${sysconfdir}/init.d/ install -m 0755 ${WORKDIR}/psplash-init ${D}${sysconfdir}/init.d/psplash.sh install -d ${D}${bindir} @@ -107,8 +106,6 @@ do_install_append() { rm -f ${D}${bindir}/psplash } -FILES_${PN} += "/mnt/.psplash" - INITSCRIPT_NAME = "psplash.sh" INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ." -- 2.13.6