Skip to content

Commit c291991

Browse files
committed
only grep the active LOADER_TYPE in /etc/sysconfig/bootloader - issue #1038
1 parent 419d517 commit c291991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/share/rear/prep/default/50_guess_bootloader.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# /var/lib/rear/recovery/bootloader
33
if [[ -f /etc/sysconfig/bootloader ]]; then
44
# openSUSE uses LOADER_TYPE, and others??
5-
my_bootloader=$( grep LOADER_TYPE /etc/sysconfig/bootloader | cut -d= -f2 | sed -e 's/"//g' )
5+
my_bootloader=$( grep ^LOADER_TYPE /etc/sysconfig/bootloader | cut -d= -f2 | sed -e 's/"//g' )
66
if [[ ! -z "$my_bootloader" ]]; then
77
echo "$my_bootloader" | tr '[a-z]' '[A-Z]' >$VAR_DIR/recovery/bootloader
88
return

0 commit comments

Comments
 (0)