]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dracut-functions.sh): check kernel config from $dracutsysrootdir
authorZoltán Böszörményi <zboszor@pr.hu>
Tue, 19 Jan 2021 09:39:17 +0000 (10:39 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Thu, 21 Jan 2021 16:33:18 +0000 (16:33 +0000)
Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
dracut-functions.sh

index e5e6884b0924dc80a4a77e38227b16844f33a94a..be287c397c4e90ab7685c121c86a3d936b79e20a 100755 (executable)
@@ -668,7 +668,7 @@ check_kernel_config()
     # no kernel config file, so return true
     [[ $_config_file ]] || return 0
 
-    grep -q -F "${_config_opt}=" "$_config_file" && return 0
+    grep -q -F "${_config_opt}=" "$dracutsysrootdir$_config_file" && return 0
     return 1
 }