1
0
This commit is contained in:
dump_stack() 2023-04-06 21:57:47 +00:00
parent cd7cf0f2b6
commit 4bc4ca738b
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -348,7 +348,7 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
}
// Cache kernel package dependencies
d += "export PKGNAME=$(yum search kernel-devel --showduplicates | grep '^kernel-devel' | cut -d ' ' -f 1 | head -n 1); " +
d += "RUN export PKGNAME=$(yum search kernel-devel --showduplicates | grep '^kernel-devel' | cut -d ' ' -f 1 | head -n 1); " +
"yum -y install $PKGNAME $(echo $PKGNAME | sed 's/-devel//'); " +
"yum -y remove $PKGNAME $(echo $PKGNAME | sed 's/-devel//')\n"
default: