From 2b1d02c0e47da31eb995dec66bf75c3ca381eb44 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Wed, 13 Feb 2008 10:20:37 -0800 Subject: 1.0-7174 --- kernel.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'kernel.c') diff --git a/kernel.c b/kernel.c index 6f13b56..5a3dd6e 100644 --- a/kernel.c +++ b/kernel.c @@ -655,6 +655,18 @@ int test_kernel_module(Options *op, Package *p) sysctl(name, 2, NULL, 0, &new_loglevel, len); } + /* + * On Linux 2.6 we depend on the AGPGART frontend module unless + * the kernel was configured without support for the Linux AGP + * GART driver. Preload it here to satisfy the dependency, which + * isn't resolved by `insmod`. + */ + if (strncmp(get_kernel_name(op), "2.4", 3) != 0) { + cmd = nvstrcat(op->utils[MODPROBE], " -q agpgart", NULL); + run_command(op, cmd, NULL, FALSE, 0, TRUE); + nvfree(cmd); + } + cmd = nvstrcat(op->utils[INSMOD], " ", p->kernel_module_build_directory, "/", p->kernel_module_filename, NULL); -- cgit v1.2.3