Fix a bug: If /var/log is a separate partition, check whether /var is a separate partition will be passed.

This commit is contained in:
Samson-W 2021-07-16 00:58:37 +08:00
parent d262a18d70
commit 8ad11ac333
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ is_kernel_option_enabled() {
is_a_partition() {
local PARTITION=$1
FNRET=128
if $(grep "[[:space:]]*${PARTITION}[[:space:]]*" /etc/fstab | grep -vqE "^#"); then
if $(grep "[[:space:]]*${PARTITION}[[:space:]].*" /etc/fstab | grep -vqE "^#"); then
debug "$PARTITION found in fstab"
FNRET=0
else