[rear-users] ReaR entry in grub

Werner Flamme werner.flamme at ufz.de
Tue May 7 11:42:35 CEST 2013


Schlomo Schapiro [07.05.2013 11:31]:
> ​Hi,​
> 
> On 7 May 2013 11:23, Jeroen Hoekx <jeroen.hoekx at hamok.be> wrote:
> 
>> Could someone post the output in a few other distributions that still
>> have legacy grub of:
>> $ strings $(which grub) | sed -rn
>> 's/^[^0-9\.]*([0-9]+\.[-0-9a-z\.]+).*$/\1/p'
>>
> 
> ​I know that this would be new for ReaR, but why not simply do a rpm -qf
> $(type -p grub) on RPM-based systems (I guess we can also find an
> equivalent for debian)?


--- 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

rpm -qf $(type -p grub)
grub-0.97-188.1.1.x86_64

--- SLES 11 SP2 ---

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-162.13.12.1

rpm -qf $(type -p grub)
grub-0.97-162.13.12.1

--- ---

Regards,
Werner

-- 


More information about the rear-users mailing list