[rear-users] ReaR entry in grub

Werner Flamme werner.flamme at ufz.de
Tue May 7 13:10:04 CEST 2013


Schlomo Schapiro [07.05.2013 12:51]:
> On 7 May 2013 11:42, Werner Flamme <werner.flamme at ufz.de> wrote:
> 
>> --- openSUSE 12.3: ---
>>
>> strings $(which grub) | sed -rn
>> 's/^[^0-9\.]*([0-9]+\.[-0-9a-z\.]+).*$/\1/p'
>> 2.3
>> 2.2
>> 2.1
>> 2.0
>> 0.97
>> 0.97
>> 1.5
>> 1.1
>> 0.97
>>
>> rpm -qa 'grub*' | sort
>> grub-0.97-188.1.1.x86_64
>> grub2-2.00-19.19.1.x86_64
>> grub2-branding-openSUSE-12.3-184.4.noarch
>> grub2-efi-2.00-19.19.1.x86_64
>> grub2-i386-pc-2.00-19.19.1.x86_64
>> grub2-x86_64-efi-2.00-19.19.1.x86_64
>>
> 
> ​How do you know which grub is in use?​

By looking at the boot prompt :-\. AFAIK the system uses legacy grub
when it is installed. No, wait, there is YaST...

Before switching:
grep LOADER_TYPE /etc/sysconfig/bootloader
LOADER_TYPE="grub"

After switching:
grep LOADER_TYPE /etc/sysconfig/bootloader
LOADER_TYPE="grub2"

So the place where SUSE stores the info is updated correctly.

Version:
cat /etc/os-release
NAME=openSUSE
VERSION="12.3 (Dartmouth)"
VERSION_ID="12.3"
PRETTY_NAME="openSUSE 12.3 (Dartmouth) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:12.3"

Regards, Werner

-- 


More information about the rear-users mailing list