-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Little FYI/Tip or you. When I build a kernel, I do something like the
following:

Leviathan boot # tree
.
|-- 2.6.23-r6
|   |-- Config.Leviathan
|   |-- Leviathan
|   `-- System.map-Leviathan
|-- 2.6.23-r8
|   |-- Config.Leviathan
|   |-- Leviathan
|   `-- System.map-Leviathan
|-- boot -> .
|-- grub
|   |-- default
|   |-- device.map
|   |-- e2fs_stage1_5
|   |-- fat_stage1_5
|   |-- ffs_stage1_5
|   |-- grub.conf
|   |-- grub.conf.sample
|   |-- grub.conf~
|   |-- iso9660_stage1_5
|   |-- jfs_stage1_5
|   |-- menu.lst -> grub.conf
|   |-- minix_stage1_5
|   |-- reiserfs_stage1_5
|   |-- splash.xpm.gz
|   |-- stage1
|   |-- stage2
|   |-- stage2_eltorito
|   |-- ufs2_stage1_5
|   |-- vstafs_stage1_5
|   `-- xfs_stage1_5
`-- lost+found

5 directories, 26 files
Leviathan boot #


As you can see, for each kernel I make, I copy the .config to the
/boot/<`uname-r`>/ dir so that I always have a copy.

But to answer your original request, you can try looking for
/proc/config.gz .... there is an option (I believe it is the default
setting) to throw a copy of /usr/src/linux/.config in there. If it is
there, you can do something like this

- -> gzcat /proc/config.gz >>/usr/src/linux/.config <--

Give that a shot and see what happens.

#################################################################################
# NOTICE: The contents of this e-mail and any attachments to it may   
     #
# contain privileged and confidential information from XaeroLimit   
     #
# Industries or its affiliates. This information is only for the
viewing     #
# or use of the intended recipient. If you are not the intended
recipient,     #
# you are hereby notified that any disclosure, copying, distribution
or use     #
# of, or the taking of any action in reliance upon, the information   
     #
# contained in this e-mail, or any of the attachments to this e-mail,
        #
# is strictly prohibited. If you have received this e-mail in error,
        #
# please immediately notify the sender by replying to this message and
        #
# delete it from your system.                             #
#################################################################################



sean wrote:
> I was updating my system and the nvidia drivers complained that there
> was no .config in /usr/src/linux.
>
> I looked at it was gone.
> This has happened before.
> Is this some bug?
> I am running on amd64.
>
> Unfortunately I do not have a current copy of .config.
> Does anyone know a less painful way of rebuilding than through make
> menuconfig?
> I have got to remember to make a backup.
>
>                     Thanks
>                     Sean
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHt1Hu8hUIAnGfls4RArLJAJ4p14akwIuAuPb3E/x0YrOZLk1bUQCfUa/M
qCjW9tFcWCemj+GWkF0aDZU=
=2ygc
-----END PGP SIGNATURE-----

-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to