fix: apply af_packet workaround for all except opensuse15
This commit is contained in:
parent
7e1b2a24f3
commit
b86c0508f9
@ -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") {
|
||||||
|
Loading…
Reference in New Issue
Block a user