sys-kernel/installkernel: ensure /var/log exists

Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
Nowa Ammerlaan
2024-12-29 19:50:28 +01:00
parent b73da59e06
commit 100aaa5fad

View File

@@ -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"\