1 |
I try to genkernel again and update in grub. it's working |
2 |
|
3 |
thanks, |
4 |
|
5 |
ti |
6 |
|
7 |
Boyd Stephen Smith Jr. wrote: |
8 |
> On Sunday 22 October 2006 11:47, "Régis Décamps" <regis@×××××××.info> wrote |
9 |
> about 'Re: [gentoo-user] asterisk zaptel-1.2.9.1 error': |
10 |
> |
11 |
>>> * Could not find a usable .config in the kernel source directory. |
12 |
>>> * Please ensure that /usr/src/linux points to a configured set of |
13 |
>>> Linux sources. |
14 |
>>> |
15 |
>> You should hava a backup of your linux-kernel configuration in /boot. |
16 |
>> use ls -al /usr/src/linux to check that the version of the kernel |
17 |
>> source is the same than the kernel image you use. In which case you |
18 |
>> can: |
19 |
>> ln -s /boot/Config-<version> /usr/src/linux/.config |
20 |
>> |
21 |
> |
22 |
> Try the script below instead, it might not fix everything, but it's less |
23 |
> hit-and-miss than manually searching for a configuration backup that you |
24 |
> may not even have. |
25 |
> |
26 |
> #!/bin/bash |
27 |
> if [ -h /usr/src/linux ]; then |
28 |
> echo 'You have a /usr/src/linux symlink, good.' |
29 |
> if [ "$(readlink /usr/src/linux)" == "linux-$(uname -r)" ]; then |
30 |
> echo 'It points to your running kernel, also good.' |
31 |
> else |
32 |
> echo "But, it points to the wrong place. I'll fix it." |
33 |
> ln -snf "linux-$(uname -r)" /usr/src/linux || exit 127 |
34 |
> fi |
35 |
> elif [ -e /usr/src/linux ]; then |
36 |
> echo 'You have a /usr/src/linux, but it is not a symlink.' |
37 |
> echo "Your system is broken, but I can't automatically fix it." |
38 |
> exit 1 |
39 |
> else |
40 |
> echo "You don't have a /usr/src/linux, let me make one for you." |
41 |
> ln -snf "linux-$(uname -r)" /usr/src/linux || exit 127 |
42 |
> fi |
43 |
> |
44 |
> if [ -r /proc/config.gz ]; then |
45 |
> echo 'You have a /proc/config.gz, good.' |
46 |
> else |
47 |
> echo "You either don't have a /proc/config.gz or I can't read it." |
48 |
> echo "Sorry, I can't access the configuration of your running kernel." |
49 |
> exit 1 |
50 |
> fi |
51 |
> |
52 |
> if [ -r /usr/src/linux/.config ]; then |
53 |
> echo 'You already have a readable /usr/src/linux/.config, hrm.' |
54 |
> elif [ -e /usr/src/linux/.config ]; then |
55 |
> echo "Your /usr/src/linux/.config exists, but I can't read it." |
56 |
> echo "There's probably a permissions problem somewhere." |
57 |
> exit 1 |
58 |
> else |
59 |
> echo 'No /usr/src/linux/.config, using running config.' |
60 |
> zcat /proc/config.gz > /usr/src/linux/.config || exit 127 |
61 |
> exit 0 |
62 |
> fi |
63 |
> |
64 |
> if zcat /proc/config.gz | diff /usr/src/linux/.config - ; then |
65 |
> echo 'Your /usr/src/linux/.config and your running configuration agree.' |
66 |
> echo "I can't believe you wasted my CPU cycles. ;)" |
67 |
> exit 0 |
68 |
> else |
69 |
> echo -n 'Your /usr/src/linux/.config and your running configuration ' |
70 |
> echo -n 'are different. You should build and install, as needed, this ' |
71 |
> echo -n 'new configuration. After doing so, you should be able to ' |
72 |
> echo -n 'compile out-of-tree modules, but they will not be usable until ' |
73 |
> echo 'you boot into the newly configured kernel.' |
74 |
> exit 1 |
75 |
> fi |
76 |
> |
77 |
> |
78 |
-- |
79 |
gentoo-user@g.o mailing list |