Cleanup also -core/-modules
This commit is contained in:
parent
70d464f0e2
commit
096cad8701
@ -373,7 +373,10 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
|
||||
// Cache kernel package dependencies
|
||||
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//'); " +
|
||||
fmt.Sprintf("yum -y remove $PKGNAME $(echo $PKGNAME | sed 's/-devel//') %s\n", flags)
|
||||
fmt.Sprintf("yum -y remove $PKGNAME "+
|
||||
"$(echo $PKGNAME | sed 's/-devel//') "+
|
||||
"$(echo $PKGNAME | sed 's/-devel/-modules/') "+
|
||||
"$(echo $PKGNAME | sed 's/-devel/-core/') %s\n", flags)
|
||||
default:
|
||||
err = fmt.Errorf("%s not yet supported", sk.DistroType.String())
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user