bootmisc: Remove console directories only if $RC_LIBEXECDIR is writable
X-Gentoo-Bug: 489368 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489368
This commit is contained in:
parent
abadaa04ab
commit
561b53ef09
@ -129,7 +129,9 @@ clean_run()
|
||||
start()
|
||||
{
|
||||
# Remove any added console dirs
|
||||
rm -rf "$RC_LIBEXECDIR"/console/*
|
||||
if checkpath -W "$RC_LIBEXECDIR"; then
|
||||
rm -rf "$RC_LIBEXECDIR"/console/*
|
||||
fi
|
||||
|
||||
local logw=false runw=false extra=
|
||||
# Ensure that our basic dirs exist
|
||||
|
Loading…
Reference in New Issue
Block a user