I am installing new Linux distro (gentoo) and I want to copy the linux kernel config I have here in the linux mint live USB to the Gentoo system. The way Mint has the kernel config file is /boot/config-3.19.0-32-generic
but in Gentoo it has to be /proc/config.gz
(specific file path in this situation is /mnt/gentoo/proc/config.gz
). Could I take the config-3.19.0.32-generic
and turn it into config.gz
and just copy? Is there other way to do this?
.gz is a gzip format, read this: https://en.wikipedia.org/wiki/Gzip
You can compress the file and then move it.
gzip /boot/config-3.19.0-32-generic
mv /boot/config-3.19.0-32-generic.gz /mnt/gentoo/proc/config.gz
-
That should be probably
... /mnt/gentoo/proc/config.gz
as copying to live/proc
filesystem might not work as intended. – zagrimsan Dec 27 '15 at 9:15 -
Do the Following
- On a Windows Machine, use LiLiCreator to create a USB, containing the Gentoo LiveCD.
- Boot your Mint Version.
- Mount the Gentoo Live USB in Mint. I'll assume sdb.
- Issue roxto's command,
gzip /boot/config-version && mv /boot/config-version.gz /dev/sdb
- Boot the Gentoo Live USB.
- Follow the Gentoo Handbook Step by Step to Configuring the Linux kernel
- During the Preparing the Disks step, you need to issue:
cp /config-version.gz /mnt/gentoo/boot
- You must now match Kernel Versions. To do that, read the post I helped answer on Masked Kernel Versions.
- Note that you WILL HAVE ISSUES, as our Package Maintainers don't have a 3.19.x Kernel Version. See the Gentoo Sources Package. Knowing this you need install a Matching version in Mint before you do this procedure, using the Update Manager in Mint. See Question 3 here.
- Rename your File in step 4 to
.config
and move it to/usr/src/linux
and then follow the manual configuration option in the handbook.
/proc
is runtime-generated, so/proc/config.gz
is always the config used to build the currently running kernel. Both/boot/config...
and/proc/config.gz
are used to have a config file to use when you want to compile the Linux kernel (which you should do for Gentoo). – cylgalad Dec 27 '15 at 9:59