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:
Guilherme G. Piccoli
2022-02-23 11:53:56 -03:00
parent 725d6d7149
commit f6897255a2
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ grub_update() {
fi
}
if [ ! -f "/etc/default/kdump" ]; then
if [ ! -s "/etc/default/kdump" ]; then
logger "kdump-steamos: /etc/default/kdump not present - aborting..."
exit 0
fi