From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5318015812D for ; Sun, 29 Dec 2024 18:51:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 708F1E07C7; Sun, 29 Dec 2024 18:51:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57EEEE07C7 for ; Sun, 29 Dec 2024 18:51:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 628E4335DE9 for ; Sun, 29 Dec 2024 18:51:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C2B2711AC for ; Sun, 29 Dec 2024 18:51:24 +0000 (UTC) From: "Nowa Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nowa Ammerlaan" Message-ID: <1735498274.100aaa5fadf4a612fadde9adebea8c1e141f18be.nowa@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/installkernel/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/installkernel/installkernel-49.ebuild X-VCS-Directories: sys-kernel/installkernel/ X-VCS-Committer: nowa X-VCS-Committer-Name: Nowa Ammerlaan X-VCS-Revision: 100aaa5fadf4a612fadde9adebea8c1e141f18be X-VCS-Branch: master Date: Sun, 29 Dec 2024 18:51:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4ed001fe-3b53-4e7f-a8f4-80eda13ed1ae X-Archives-Hash: 52d57f9f72aff926f013175763dea79e commit: 100aaa5fadf4a612fadde9adebea8c1e141f18be Author: Nowa Ammerlaan gentoo org> AuthorDate: Sun Dec 29 18:50:28 2024 +0000 Commit: Nowa Ammerlaan gentoo org> CommitDate: Sun Dec 29 18:51:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=100aaa5f sys-kernel/installkernel: ensure /var/log exists Signed-off-by: Nowa Ammerlaan gentoo.org> sys-kernel/installkernel/installkernel-49.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys-kernel/installkernel/installkernel-49.ebuild b/sys-kernel/installkernel/installkernel-49.ebuild index 3051f6f2e8a3..fd725cda3fbc 100644 --- a/sys-kernel/installkernel/installkernel-49.ebuild +++ b/sys-kernel/installkernel/installkernel-49.ebuild @@ -220,8 +220,9 @@ pkg_postinst() { fi # Initialize log file if there is none + dodir /var/log local log=${ROOT}/var/log/installkernel.log - if [[ ! -f ${log} ]]; then + if [[ ! -s ${log} ]]; then echo -e \ "DATE\t"\ "KI_VENDOR\t"\