summaryrefslogtreecommitdiff
path: root/sys-boot/grub/files/04-fgrep.patch
blob: 93d50ffab538e3eb1d7027b33be2ea9d89f91f6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
diff -Nur a/grub-core/lib/libgcrypt/src/libgcrypt-config.in b/grub-core/lib/libgcrypt/src/libgcrypt-config.in
--- a/grub-core/lib/libgcrypt/src/libgcrypt-config.in	2018-11-24 17:13:02.000000000 +0000
+++ b/grub-core/lib/libgcrypt/src/libgcrypt-config.in	2022-10-05 01:59:10.786495758 +0100
@@ -142,7 +142,7 @@
 
     tmp=""
     for i in $includes $cflags_final; do
-       if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then
+       if echo "$tmp" | grep -Fv -- "$i" >/dev/null; then
            tmp="$tmp $i"
        fi
     done
@@ -163,7 +163,7 @@
 
     tmp=""
     for i in $libdirs $libs_final; do
-       if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then
+       if echo "$tmp" | grep -Fv -- "$i" >/dev/null; then
            tmp="$tmp $i"
        fi
     done
diff -Nur a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in
--- a/util/grub.d/10_hurd.in	2018-11-24 17:13:02.000000000 +0000
+++ b/util/grub.d/10_hurd.in	2022-10-05 02:02:09.500500296 +0100
@@ -168,7 +168,7 @@
   hurd_entry "$kernel" advanced
   hurd_entry "$kernel" recovery
 
-  kernels=`echo $kernels | tr ' ' '\n' | fgrep -vx "$kernel" | tr '\n' ' '`
+  kernels=`echo $kernels | tr ' ' '\n' | grep -Fvx "$kernel" | tr '\n' ' '`
 done
 
 # If at least one kernel was found, then we need to
diff -Nur a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in
--- a/util/grub.d/10_kfreebsd.in	2018-11-24 17:13:02.000000000 +0000
+++ b/util/grub.d/10_kfreebsd.in	2022-10-05 02:02:31.978500866 +0100
@@ -231,7 +231,7 @@
     kfreebsd_entry "${OS}" "${version}" recovery "-s"
   fi
 
-  list=`echo $list | tr ' ' '\n' | fgrep -vx "$kfreebsd" | tr '\n' ' '`
+  list=`echo $list | tr ' ' '\n' | grep -Fvx "$kfreebsd" | tr '\n' ' '`
 done
 
 # If at least one kernel was found, then we need to
diff -Nur a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
--- a/util/grub.d/10_linux.in	2018-11-24 17:13:02.000000000 +0000
+++ b/util/grub.d/10_linux.in	2022-10-05 02:01:43.687499640 +0100
@@ -282,7 +282,7 @@
                 "single ${GRUB_CMDLINE_LINUX}"
   fi
 
-  list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
+  list=`echo $list | tr ' ' '\n' | grep -Fvx "$linux" | tr '\n' ' '`
 done
 
 # If at least one kernel was found, then we need to
diff -Nur a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
--- a/util/grub.d/20_linux_xen.in	2019-04-23 09:54:47.000000000 +0100
+++ b/util/grub.d/20_linux_xen.in	2022-10-05 02:00:13.501497350 +0100
@@ -310,12 +310,12 @@
 		"single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}"
 	fi
 
-	list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
+	list=`echo $list | tr ' ' '\n' | grep -Fvx "$linux" | tr '\n' ' '`
     done
     if [ x"$is_top_level" != xtrue ]; then
 	echo '	}'
     fi
-    xen_list=`echo $xen_list | tr ' ' '\n' | fgrep -vx "$current_xen" | tr '\n' ' '`
+    xen_list=`echo $xen_list | tr ' ' '\n' | grep -Fvx "$current_xen" | tr '\n' ' '`
 done
 
 # If at least one kernel was found, then we need to