Gentoo Archives: gentoo-user

From: Chris Brennan <xaero@××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Missing .config
Date: Sat, 16 Feb 2008 21:14:38
Message-Id: 47B751EE.10900@xaerolimit.net
In Reply to: [gentoo-user] Missing .config by sean
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Little FYI/Tip or you. When I build a kernel, I do something like the
5 following:
6
7 Leviathan boot # tree
8 .
9 |-- 2.6.23-r6
10 | |-- Config.Leviathan
11 | |-- Leviathan
12 | `-- System.map-Leviathan
13 |-- 2.6.23-r8
14 | |-- Config.Leviathan
15 | |-- Leviathan
16 | `-- System.map-Leviathan
17 |-- boot -> .
18 |-- grub
19 | |-- default
20 | |-- device.map
21 | |-- e2fs_stage1_5
22 | |-- fat_stage1_5
23 | |-- ffs_stage1_5
24 | |-- grub.conf
25 | |-- grub.conf.sample
26 | |-- grub.conf~
27 | |-- iso9660_stage1_5
28 | |-- jfs_stage1_5
29 | |-- menu.lst -> grub.conf
30 | |-- minix_stage1_5
31 | |-- reiserfs_stage1_5
32 | |-- splash.xpm.gz
33 | |-- stage1
34 | |-- stage2
35 | |-- stage2_eltorito
36 | |-- ufs2_stage1_5
37 | |-- vstafs_stage1_5
38 | `-- xfs_stage1_5
39 `-- lost+found
40
41 5 directories, 26 files
42 Leviathan boot #
43
44
45 As you can see, for each kernel I make, I copy the .config to the
46 /boot/<`uname-r`>/ dir so that I always have a copy.
47
48 But to answer your original request, you can try looking for
49 /proc/config.gz .... there is an option (I believe it is the default
50 setting) to throw a copy of /usr/src/linux/.config in there. If it is
51 there, you can do something like this
52
53 - -> gzcat /proc/config.gz >>/usr/src/linux/.config <--
54
55 Give that a shot and see what happens.
56
57 #################################################################################
58 # NOTICE: The contents of this e-mail and any attachments to it may
59 #
60 # contain privileged and confidential information from XaeroLimit
61 #
62 # Industries or its affiliates. This information is only for the
63 viewing #
64 # or use of the intended recipient. If you are not the intended
65 recipient, #
66 # you are hereby notified that any disclosure, copying, distribution
67 or use #
68 # of, or the taking of any action in reliance upon, the information
69 #
70 # contained in this e-mail, or any of the attachments to this e-mail,
71 #
72 # is strictly prohibited. If you have received this e-mail in error,
73 #
74 # please immediately notify the sender by replying to this message and
75 #
76 # delete it from your system. #
77 #################################################################################
78
79
80
81 sean wrote:
82 > I was updating my system and the nvidia drivers complained that there
83 > was no .config in /usr/src/linux.
84 >
85 > I looked at it was gone.
86 > This has happened before.
87 > Is this some bug?
88 > I am running on amd64.
89 >
90 > Unfortunately I do not have a current copy of .config.
91 > Does anyone know a less painful way of rebuilding than through make
92 > menuconfig?
93 > I have got to remember to make a backup.
94 >
95 > Thanks
96 > Sean
97 -----BEGIN PGP SIGNATURE-----
98 Version: GnuPG v2.0.7 (GNU/Linux)
99 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
100
101 iD8DBQFHt1Hu8hUIAnGfls4RArLJAJ4p14akwIuAuPb3E/x0YrOZLk1bUQCfUa/M
102 qCjW9tFcWCemj+GWkF0aDZU=
103 =2ygc
104 -----END PGP SIGNATURE-----
105
106 --
107 gentoo-user@l.g.o mailing list