]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Accept d/D symbols, too (ffffffff825ca52c D __initramfs_start) as noticed in recent...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 25 Nov 2019 19:15:24 +0000 (20:15 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 25 Nov 2019 19:15:24 +0000 (20:15 +0100)
geninitrd

index 05e290ac373504a604fc00511f44caadf36c5247..052f55317a3c5207b33a111fb1aeea0ae5ca319e 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1097,7 +1097,7 @@ sym_exists() {
                return 1
        fi
 
-       awk -vc=1 -vsymbol="$symbol" '($2 == "T" || $2 == "t") && $3 == symbol {c = 0} END {exit c}' $mapfile
+       awk -vc=1 -vsymbol="$symbol" '(tolower($2) == "t" || tolower($2) == "d") && $3 == symbol {c = 0} END {exit c}' $mapfile
 }
 
 # find best compressor (or forced one) for initrd
This page took 0.336529 seconds and 4 git commands to generate.