1
0

Force drivers only on 8+

This commit is contained in:
dump_stack() 2023-05-09 17:53:39 +00:00
parent cd68dc1ddc
commit d5b733a0a0
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -536,8 +536,13 @@ func installKernel(sk config.KernelMask, pkgname string, force, headers bool) (e
version = strings.Replace(pkgname, "kernel-", "", -1) version = strings.Replace(pkgname, "kernel-", "", -1)
} }
if sk.DistroRelease <= "7" {
cmd += fmt.Sprintf(" && dracut -v --add-drivers 'e1000 ext4' -f "+
"/boot/initramfs-%s.img %s", version, version)
} else {
cmd += fmt.Sprintf(" && dracut -v --add-drivers 'ata_piix libata' --force-drivers 'e1000 ext4 sd_mod' -f "+ cmd += fmt.Sprintf(" && dracut -v --add-drivers 'ata_piix libata' --force-drivers 'e1000 ext4 sd_mod' -f "+
"/boot/initramfs-%s.img %s", version, version) "/boot/initramfs-%s.img %s", version, version)
}
default: default:
err = fmt.Errorf("%s not yet supported", sk.DistroType.String()) err = fmt.Errorf("%s not yet supported", sk.DistroType.String())
return return