1
0

fix: cleanup dracut repo after install

This commit is contained in:
dump_stack() 2023-06-18 12:02:32 +00:00
parent 8516ff9e91
commit 6ffaa3dad4
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -187,6 +187,7 @@ func (suse OpenSUSE) runs() (commands []string) {
switch suse.release { switch suse.release {
case "12.1", "12.2": case "12.1", "12.2":
cmdf("zypper -n install %s -r dracut dracut", params) cmdf("zypper -n install %s -r dracut dracut", params)
cmdf("rm /etc/zypp/repos.d/dracut.repo")
} }
if !strings.HasPrefix(suse.release, "12") { if !strings.HasPrefix(suse.release, "12") {