1
0

fix: use --no-hostonly only on opensuse 12

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

View File

@ -254,14 +254,14 @@ 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 --no-hostonly " format := "dracut "
if strings.HasPrefix(suse.release, "13") || if strings.HasPrefix(suse.release, "13") ||
strings.HasPrefix(suse.release, "12") { strings.HasPrefix(suse.release, "12") {
format += "-a workaround " format += "-a workaround "
} }
if strings.HasPrefix(suse.release, "12") { if strings.HasPrefix(suse.release, "12") {
format += "--add-drivers '%s' " format += "--no-hostonly --add-drivers '%s' "
} else { } else {
format += "--force-drivers '%s' " format += "--force-drivers '%s' "
} }