fix: use --no-hostonly only on opensuse 12
This commit is contained in:
parent
f8e5d29722
commit
7e1b2a24f3
@ -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"
|
||||
|
||||
format := "dracut --no-hostonly "
|
||||
format := "dracut "
|
||||
if strings.HasPrefix(suse.release, "13") ||
|
||||
strings.HasPrefix(suse.release, "12") {
|
||||
|
||||
format += "-a workaround "
|
||||
}
|
||||
if strings.HasPrefix(suse.release, "12") {
|
||||
format += "--add-drivers '%s' "
|
||||
format += "--no-hostonly --add-drivers '%s' "
|
||||
} else {
|
||||
format += "--force-drivers '%s' "
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user