1
0

fix: apply af_packet workaround for all except opensuse15

This commit is contained in:
dump_stack() 2023-06-19 22:41:35 +00:00
parent 7e1b2a24f3
commit b86c0508f9
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -230,9 +230,7 @@ func (suse OpenSUSE) Install(version string, headers bool) (err error) {
cmdf("%s kernel-default-devel=%s", installcmd, version) cmdf("%s kernel-default-devel=%s", installcmd, version)
} }
if strings.HasPrefix(suse.release, "13") || if !strings.HasPrefix(suse.release, "15") {
strings.HasPrefix(suse.release, "12") {
cmdf("mkdir /usr/lib/dracut/modules.d/42workaround") cmdf("mkdir /usr/lib/dracut/modules.d/42workaround")
wsetuppath := "/usr/lib/dracut/modules.d/42workaround/module-setup.sh" wsetuppath := "/usr/lib/dracut/modules.d/42workaround/module-setup.sh"
@ -255,9 +253,7 @@ func (suse OpenSUSE) Install(version string, headers bool) (err error) {
modules := "ata_piix libata e1000 ext4 sd_mod rfkill af_packet" modules := "ata_piix libata e1000 ext4 sd_mod rfkill af_packet"
format := "dracut " format := "dracut "
if strings.HasPrefix(suse.release, "13") || if !strings.HasPrefix(suse.release, "15") {
strings.HasPrefix(suse.release, "12") {
format += "-a workaround " format += "-a workaround "
} }
if strings.HasPrefix(suse.release, "12") { if strings.HasPrefix(suse.release, "12") {