mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
sys-kernel/installkernel: ensure /var/log exists
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
@@ -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"\
|
||||
|
||||
Reference in New Issue
Block a user