From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F3E571381F3 for ; Sat, 30 Dec 2017 19:11:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24317E0904; Sat, 30 Dec 2017 19:11:48 +0000 (UTC) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AE2DCE0830 for ; Sat, 30 Dec 2017 19:11:47 +0000 (UTC) Received: by mail-wm0-x22b.google.com with SMTP id f140so52346333wmd.2 for ; Sat, 30 Dec 2017 11:11:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:reply-to:subject:date:message-id:in-reply-to:references :mime-version; bh=eAKnzEGMXawByn9Jo9FKTifX1X4NxYzN0N6IO+ODm1o=; b=T0Om+ctV3GbI14IMCd/rGGBURGalLj/wSuKXghd1VBAksHKUt6nPaIS1E5uSXW00QD doLnZrN1hKe/3oojwX7hGxkhQqY1GuuXmgYSf4vZGbkzpj9oB7biVsHdvugVhuuZigbk FP1s+cYaX+wC8XVyk6kf2KIFk0YnuFtrMaMEUvEaNmx1rZA6znh0zE/IGQ5HOLpwXazB jmDRxGMJocQGtambconqjTm/tEBYZpx4Sja0h+64/uYaGqcNfP2T1Tm1YN7ZHQZoV1NK JraEsSEqxhbVKb0D//vSjW0oPF/rIz3ZOlv6T0pwJ5H87+90ELzawoGIkLDCW9Se+Df0 x/0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:reply-to:subject:date:message-id :in-reply-to:references:mime-version; bh=eAKnzEGMXawByn9Jo9FKTifX1X4NxYzN0N6IO+ODm1o=; b=Upb/CV3KKeJZDlBSrW9Th0iNuvIc6Sqrl+tLLIqTUfajojQm8iRBtxppZF1bw7OUYA +rqcUHcC/pbkHIR2zw2myhRyuXMuGV5lJGhIAtsnYSwh2+sp7obBlRMfcno1QyekUAhc 7nSJoPVfkV9gQ21B0wkV1NHg3aRkYjPfxoWQNzJMp5kriV/joezSMiFSvb3zpJhzn21s UHEoqO0VtNbaVjPM3O/zHHNyUAbrAfjkbn31yMKmi7c2XuKZFVoZNkdxTS4uOqhCkxmY 01UPmVMMR2ne/nPfHwZLOJ8sKZq3FJho1Dm9uiS+Rc8z7k5BsfDSmDsLKZxebILZK/Q1 MdIA== X-Gm-Message-State: AKGB3mL0Yz/5dyDRFUJXfzDeKFpID0RfhVQ2EPxhFgWbVmB+zhgDwrKr vPE33ymYrb5Nw+cKeSvB7KJfFw== X-Google-Smtp-Source: ACJfBou5nKMSEEuvohufJE92SViqW3XN2bNgOQN4aVaAsApfx4DVFKJ4rK1/5ftSly0VHVJnKz6eLw== X-Received: by 10.28.31.137 with SMTP id f131mr28067883wmf.110.1514661106219; Sat, 30 Dec 2017 11:11:46 -0800 (PST) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id c53sm39130769wrg.10.2017.12.30.11.11.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Dec 2017 11:11:45 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Kernel upgrade confusion Date: Sat, 30 Dec 2017 19:11:46 +0000 Message-ID: <8148059.ArXgNCOqcu@dell_xps> In-Reply-To: <908e7bdd-bb03-2e45-ccd1-42f0f42ffc0e@gmail.com> References: <908e7bdd-bb03-2e45-ccd1-42f0f42ffc0e@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5698934.4XIaOkfz1f"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: 323f09a6-14c6-4455-9af1-92ef8a904866 X-Archives-Hash: fea8cef6d97a00582387acd1191e836a --nextPart5698934.4XIaOkfz1f Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Hi Jalus, On Saturday, 30 December 2017 18:43:12 GMT Jalus Bilieyich wrote: > Recently there was a kernel update and I don't want to reconfigure it > from scratch. In the official documentation, it told me to move the old > .config into the new kernel source tree and type > make oldconfig > > This is where I'm confused; which .config file (/proc/config.gz or > /boot/config) and where in the kernel source tree do I put this file in. You will need to *copy* your old/existing kernel .config file to the new kernel source directory. Where you copy it from depends on where you have stored your previous kernel .config file. It may be in your /boot, if you have copied it there from /usr/ src/linux/.config last time you compiled your kernel. It should be in /usr/ src/linux/ if this symlink is still pointing to your previous kernel. You may be able to obtain it from your /proc/config.gz if you have configured your kernel to use this option. So, as root you would for example do: cp /usr/src/linux-4.4.87-r1/.config /usr/src/linux/4.9.49-r1/ && \ rm /usr/src/linux && \ ln -s /usr/src/linux-4.9.49-r1 linux && \ cd /usr/src/linux && \ make oldconfig to copy the existing .config into the new kernel sources directory, to remove the symlink pointing to the previous kernel, to create a new symlink to the new kernel sources directory, to change your working directory into the new kernel source tree, and finally to run make oldconfig in order to configure any new options available in kernel 4.9.49-r1, without having to reconfigure each and every option already set in your kernel 4.4.87-r1. If you have a /proc/config.gz you can unpack it and redirect it to your new kernel source directory: zcat /proc/config.gz > /usr/src/linux-4.9.49-r1/.config before you proceed with the last four steps I showed above. HTH. -- Regards, Mick --nextPart5698934.4XIaOkfz1f Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEt7MNaGaS6HvTUrEz6WnU8jC95dcFAlpH5PIACgkQ6WnU8jC9 5dfKuA/+J7Aa3VPTmxcphdhNKdbxtUhnyCnH3y/Y2qlwdwqGKRVstZ/xo24Yemyz Rhp0hOcxN6ZPcJ4GhiRI3zhumIPQQy7H/1tAnGeBCwZoQHBUeYPsnFWwWDm+r0pe itRRTyzfLHPWn7aaxYjkxy8YRDmR32/8axoNHKrS9DZ9yOFzODMpshyGwIguFaA7 kir2L7sZNXa/HB+tVrfw+zaKGHaKbm83RBy2+UPnG2v+jlD0vhQEH/uDSUMh8b4v Gm6Xw0nIZuwyPw/FTNI62DGFnHouQphcbJzNDaxcyP0q1RvuYSw/ZP77qGRYbg1s 1E2c4KhXRSHkUWPLNvvScCSiXePWvzfPkj4YIl9mklDCCSyBPd4d6BvKul93CebH mVfxpaNNh9H/QX0RMvUERm3/+YFgwdm0rz87rwuZ3L87GGzhQFeA1nE5GHwfQ9i7 rNGqbeWRv2W83OpKNhN6RZZNdynQaqPyue+yXRnj/HJ4U2zHq4EJiNzEZYxTIFzd dSR77tOuZmbZy9iuBGor+1H0RV/Fv6kDA/jrZgri4hSHPmWScKk9e11Q2m4PShoA Sf+EHZWzzbSMdVX/nCjPowGBRv3NC6+UbKnLYK/4876bZEJboGugsfsGaHJlvkvR ObVQr+NJYXb5+qzLO2oIKV7b8MMk61WcdXEqOrkhGmSdd3h7X/s= =cyCG -----END PGP SIGNATURE----- --nextPart5698934.4XIaOkfz1f--