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:
parent
d262a18d70
commit
8ad11ac333
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue