kdump-steamos: Strengthen /etc/default/kdump checks
Instead of just checking the file existence, check if it's not zero-sized. Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
@ -19,7 +19,7 @@ installkernel() {
|
||||
|
||||
install() {
|
||||
# Having a valid /etc/default/kdump is essential for kdump.
|
||||
if [ ! -f "/etc/default/kdump" ]; then
|
||||
if [ ! -s "/etc/default/kdump" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user