AW: Packagename depends on uname -r

Werner Pommerer werner.pommerer at uni-hohenheim.de
Fri May 15 14:16:39 CEST 2015


Hello,

it didn't work for me. In "package_config", I added the line:

......
PACKAGES yumi
......
kernel-module-openafs-`uname -r`
......

But fai.log says:

install_packages: executing chroot /target yum -y install .... kernel-module-openafs-`uname -r` .......
No package kernel-module-openafs-3.2.0-4-amd64 available.

When the I do the same, when the machine is installed, it works.
uname -r gives 2.6.32-504.16.2.el6.x86_64

yum install kernel-module-openafs-`uname -r`
........... Package 1:kernel-module-openafs-2.6.32-504.16.2.el6-1.6.6-cern3.0.slc6.x86_64 ............

What is the problem?

Regards
Werner


-----Ursprüngliche Nachricht-----
Von: linux-fai [mailto:linux-fai-bounces at uni-koeln.de] Im Auftrag von Thomas Lange
Gesendet: Sonntag, 10. Mai 2015 23:19
An: fully automatic installation for Linux
Betreff: Re: Packagename depends on uname -r

>>>>> On Fri, 8 May 2015 15:47:24 +0200, "Werner Pommerer" <werner.pommerer at uni-hohenheim.de> said:

    > I would like to install a package (SLC6), which depends on ‘uname –r’.
    > How do I do this?
Just use it in a package_config file, for e.g.

package-`uname -r`


Since this package name will be given to your yum command, but also interpreted by the shell, this will work.

--
regards Thomas



More information about the linux-fai mailing list