linux - Can I have a generic spec file for multiple kernel version while creating rpm -
i trying build rpm includes kernel module. when create on centos used %(uname -r) copy .ko in module directory uname -r
expands "3.10.0-327.el7.x86_64"
now if want install same ko on other system same kernel version using rpm, creates separate folder i.e.
aka /lib/modules/3.10.0-327.el7.x86_64 on other system
can write generic spec file copy module specific folder. please guide.
unfortunately, there no longer official way kernel modules. %(uname -r)
populating @ rpm build time; cannot have variable in %files
stanza.
as workaround, i've put module source in reasonable location , build driver in %post
. have startup script rebuilds on new kernel, because using %triggerin
won't work. uninstall built kernel module on %preun
.
Comments
Post a Comment