]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - dracut.sh
fix(dracut.sh): use gawk for strtonum
[thirdparty/dracut.git] / dracut.sh
index 01aa437279d8b3e054b25960813e77a31eb17534..a67d124456d3be8158abe2855501360b9d459280 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -2467,7 +2467,7 @@ if [[ $uefi == yes ]]; then
         fi
     fi
 
-    offs=$(objdump -h "$uefi_stub" 2> /dev/null | awk 'NF==7 {size=strtonum("0x"$3);\
+    offs=$(objdump -h "$uefi_stub" 2> /dev/null | gawk 'NF==7 {size=strtonum("0x"$3);\
                 offset=strtonum("0x"$4)} END {print size + offset}')
     if [[ $offs -eq 0 ]]; then
         dfatal "Failed to get the size of $uefi_stub to create UEFI image file"